This is a simplified example of the folder structure I have:
Top-Folder
-- Bob
---- Folder-1
-- Steve
---- Folder-1
---- Folder-2
-- Tim
---- Folder-1
With about 700 second level folders like those named ones. If I used this batch script in the top level folder:
I'd end up with one zip for each named folder, bob.zip, steve.zip, tim.zip etc. Where my problem lies is that as per the Steve example some folders contain more than one sub-folder, and I need those to be separate zips. So the desired outcome would be:
bob.zip (Contains the folder-1 inside the bob folder)
steve1.zip (Contains the folder-1 inside the steve folder)
steve2.zip (Contains the folder-2 inside the steve folder)
tim.zip (Contains the folder-1 inside the tim folder)
Anyone know if this would be possible with a batch script placed in the top level folder? Or any other method? I've not found anything on google, they're all just the basic idea for first level zipping like above. Obviously I didn't think about the need to zip these all up when I created the folder structure but doing this all manually is going to be a PITA!
Top-Folder
-- Bob
---- Folder-1
-- Steve
---- Folder-1
---- Folder-2
-- Tim
---- Folder-1
With about 700 second level folders like those named ones. If I used this batch script in the top level folder:
Code:
for /d %%X in (*) do "c:\Program Files\7-Zip\7z.exe" a "%%X.zip" "%%X\"
I'd end up with one zip for each named folder, bob.zip, steve.zip, tim.zip etc. Where my problem lies is that as per the Steve example some folders contain more than one sub-folder, and I need those to be separate zips. So the desired outcome would be:
bob.zip (Contains the folder-1 inside the bob folder)
steve1.zip (Contains the folder-1 inside the steve folder)
steve2.zip (Contains the folder-2 inside the steve folder)
tim.zip (Contains the folder-1 inside the tim folder)
Anyone know if this would be possible with a batch script placed in the top level folder? Or any other method? I've not found anything on google, they're all just the basic idea for first level zipping like above. Obviously I didn't think about the need to zip these all up when I created the folder structure but doing this all manually is going to be a PITA!