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 with the same name existing in the archive.
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