WinRAR Switch -EP - exclude paths from names
Switch -EP - exclude paths from names
With this switch, files are added to an archive without including the path information. This could result in multiple files existing in the archive with the same name.
If used when extracting, archived paths are ignored for extracted files, so all files are created in the same destination folder.
Example
archive without paths all *.bas files from the current disk
WinRAR a -r -ep bsources \*.bas