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:
Example:
C:\Projects\Folder1\ -> C:\Projects\Folder1.zip
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?
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:
Example:
C:\Projects\Folder1\ -> C:\Projects\Folder1.zip
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?
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.zip %i
posted by aubilenon at 11:18 AM on July 7, 2008
for /D %i IN (c:\project\*) do zip %i.zip %i
posted by aubilenon at 11:18 AM on July 7, 2008
This thread is closed to new comments.
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