Site Navigation

Mar 8, 2010

Zip a Directory and Subdirectories with 7zip

7zip is an open source zipping tool for Windows. Since I often do a lot of fairly intense zipping, I needed to know how to create a zip archive of a directory and its subdirectories with 7zip from the command line. Here is the syntax:

7z a -r -tzip ArchiveFileNameHere.zip DirectoryNameHere

That is it. The a adds the files and the -r recurses the subdirectories. 7zip has a number of compression options so the -t option selects the .zip format.
Post a Comment

Favorite Links Feed