I am using the 7zip command line to zip-up files. How can I add all files and subdirectorys from a folder to a zip file (.jar archive file)? I used:
7zip.exe a -t7z file.zip C:\folder
Thank you.
I assume you want to use the zip format instead of the 7z format so set -tzip
and include the path in quotes in case there is a space in the path.
7z.exe a -tzip "file.zip" "C:\folder"
Check the cmd manual for more details: http://sevenzip.sourceforge.jp/chm/cmdline/commands/index.htm
By specifying the filenames in the appropriate place.
Here's a link explaining the command line arguments for 7-zip: http://www.dotnetperls.com/7-zip-examples