Switch -EP1 - exclude base folder from names
Do not store or extract the path entered in the command line.
WinRAR a -ep1 -r test tmp\*
This is an equivalent to commands:
cd tmp WinRAR a -r ..\test cd ..
cd tmp
WinRAR a -r ..\test
cd ..
WinRAR x -ep1 data images\* dest\