cmd - Add folder contents to .rar through console commands without adding folder itself -
here's question:
i have folder named root , contains files , folders. using winrar console commands, need create archive root.rar should contain entire file/folder structure of root , shouldn't contain root folder itself.
for example:
on drive:
root- |-somefile |-somefolder- |-someotherfile in root.rar archive:
somefile somefolder- |-someotherfile i tried this:
"c:\program files\winrar\winrar.exe" -r root.rar root\* but adds root folder. tried this:
"c:\program files\winrar\winrar.exe" -ep -r root.rar root\* in case winrar didn't add root folder, didn't add other folders, , instead of folder tree i've got bunch of unstructured files. there way of adding folder structure, ignoring root?
thank you!
use -ep1 (exclude base folder names) instead of -ep (exclude paths names)
Comments
Post a Comment