Switch -EP4<path> - exclude the path prefix from names
If this switch is used when archiving, the specified path is excluded from archived names if it is found in the beginning of such name, but does not match the entire name. Comparison is performed with names already prepared to store in archive, with removed drive letters and leading path separators. For example:
WinRAR a -ep4texts\books archive c:\texts\books\technical
removes "text\books" from archived names, so they start from 'technical'. Since comparison is performed with names, as they are stored in archive, we can't use -ep4c:\texts\books.
If this switch is used when extracting, it works similarly to -ap<path> switch. Path is removed if it is present in the beginning of archived file name. For example:
WinRAR x -ep4texts\books archive
removes 'texts\books' from those archived paths, which start from it.