Switch -EP1 - exclude base folder from names
Do not store the path entered in the command line.
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:
WinRAR a -r ..\test
cd ..See also: