Link to home
Create AccountLog in
Avatar of keschuster
keschuster

asked on

Windows XP - Zip each file in folders

I'm going through some year end cleaning...  What I'm doing manually is going through each folder & subfolder and zipping each file individually.  Once I'm done with that I'm going to archive off to a network fileshare...

I was wondering if anyone had a method or knew of a program that I could point to any folder and it would zip each individual file in the current folder and each subfolder.

any ideas?
Avatar of ryan680
ryan680

Why would you want to zip each individual file? I would right click on each folder and select 'send to' compressed folder. This will compress at the folder level and will save you a lot of time.
using 7z (freeware zip app) you can try the following:

@echo off
for /R %%i in (*) do "<ENTER THE PATH HERE TO>\7z.exe" a -t7z -mx=7 -ms=off "%%i.7z" "%%i"
goto end
cls
exit

ASKER CERTIFIED SOLUTION
Avatar of CandorZ
CandorZ

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account