Switch -EP1 - exclude base folder from names


Do not store the path entered in the command line.

Example

all files and folders from the folder tmp will be added to the archive test, but the path in the archived names will not include 'tmp\'

WinRAR a -r -ep1 test tmp\*

This is equivalent to the commands:

cd tmp

WinRAR a -r ..\test

cd ..

See also: