Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Operating System - Microsoft
cancel
Showing results for 
Search instead for 
Did you mean: 

Question zipping files

R.O.
Esteemed Contributor

Question zipping files

Hi,

I have a folder with hundreds of sub-folders. I want to create a zip file by each sub-folder, with the name of the sub-folder:
folder1 --> folder1.zip
. .
folderN --> folderN.zip

Does anybody how can I do this?

Regards,
"When you look into an abyss, the abyss also looks into you"
3 REPLIES
raven_8
Frequent Advisor

Re: Question zipping files

Assuming you have winzip installed on your machine, this is easy.

Just go to that folder, highlight the files/folders you want to zip, Right-click and mouse-over "winzip", and go to "add to Zip file". Select the directory you wan tthe .zip file to reside and you're done.
Alex Lavrov.
Honored Contributor

Re: Question zipping files

Winrar has a nice command line API. You can easily write batch file that uses this API and zips the folder.

http://www.rarlabs.com/
I don't give a damn for a man that can only spell a word one way. (M. Twain)
R.O.
Esteemed Contributor

Re: Question zipping files

Finally, I have found the solution using the winzip´s wzzip command line feature.

Regard
"When you look into an abyss, the abyss also looks into you"