I am trying to zip up the following directory contents:
C:\Test\*.*
C:\Test\bin\*.*
I want to be able to zip up the Test directory and the bin subdirectory, however, I need the Test directory’s contents to be the root of the archive.
Using the WinRAR command-line program (rar.exe), I tried this command:
"C:\File.zip" -ep "C:\Test"
However, this puts all the folder contents in root of the archive. I also tried the following command, but got the same results:
"C:\File.zip" -ep "C:\Test\*.*" "C:\Test\bin"
How can I get the results I’m trying to achieve?
-rswitch will also add everything else that is inC:\Test, which Lee has not said is desired. – Synetech Aug 15 '11 at 6:14