Switch -AP - set path inside archive

WinRAR

Switch -AP<path> - set path inside archive


The path defined using this switch is merged to file names when adding files to an archive and removed from file names when extracting.

For example, if you wish to add the file readme.txt to the folder DOCS\ENG of archive release, you may run:

WinRAR a -apDOCS\ENG release readme.txt

or to extract ENG to the current folder:

WinRAR x -apDOCS release DOCS\ENG\*.*

Available for RAR and ZIP formats only.