How to compress a bunch of folders to their own zip file?
July 7, 2008 9:22 AM   Subscribe

Is there an automated script or program to create a separate zip file for each directory?

I have around 100 folders within "C:\Projects", and I would like to take each of those folders, and compress them into their own zip file:


C:\Projects\Folder1\ -> C:\Projects\

The folder's are all different names, so I can't make an easy loop script (i.e. loop from Folder1 to Folder100)

Is there an automated script, or program that I can just select the root directory (C:\Projects), and it will loop through and convert all the directories for me without me having to manually select or type out all the directory names?
posted by niwnfyc to Computers & Internet (4 answers total) 3 users marked this as a favorite
Xplorer2 will do this via the Tools | Command Script menu.

Highlight all the thing you'd like to zip, Tools | Command Script | "zip $N" and you're good to go. (or whatever command-line compression utility you'd like to use...)
posted by unixrat at 9:30 AM on July 7, 2008


Works perfect. Thanks!
posted by niwnfyc at 9:46 AM on July 7, 2008

Total Commander will also do this.
posted by qvtqht at 10:00 AM on July 7, 2008

I guess this is solved, but you can also use the command prompt to do this:

for /D %i IN (c:\project\*) do zip %i
posted by aubilenon at 11:18 AM on July 7, 2008

« Older Dude!   |   Did I teach my dog a dog-wrestling move? Newer »
This thread is closed to new comments.