08-31-2019, 07:08 AM | #1 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Help Zipping subfolders
Hello
I was hoping someone in here could help me with this problem: I need to zip folders in a bunch of sub-folders. Example: Spoiler:
How it should be: Spoiler:
I'm not that good with coding, but following a guide I managed to create this: Code:
for /d %%X in (*) do "c:\Program Files\7-Zip\7z.exe" a "%%X.zip" "%%X\" I know I can move it and run it separately in all the folders, but there are 3.000+ folders with 1.000.000+ subfolders distributed across. I hope I make sense and someone can help me. Thanks so much in advance. |
09-01-2019, 10:37 AM | #2 |
Wizard
Posts: 1,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Here is a possible solution.
With the given structure you need to delete all created zip files before you run it once more. Otherwise you will zip the before created zip files to additional archives. So, be careful if you like to do this with a huge amount of directories. Or better build a parallel structure to move all zip files to as this is better manageable. Spoiler:
Best regards, DD Last edited by Divingduck; 09-05-2019 at 12:14 PM. Reason: correct a stupid mistake move [a -tzip] back to the correct place |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ereader with subfolders | Simbeline | Which one should I buy? | 15 | 10-08-2020 08:24 AM |
PRS-T2 Subfolders in collection | carlosz123456 | Sony Reader | 0 | 08-13-2014 08:09 AM |
RE: Zipping/Mimetype/? | Hitch | Sigil | 31 | 08-02-2013 05:15 PM |
Troubleshooting Cablibre and subfolders | nimblem | Amazon Kindle | 6 | 02-13-2012 01:36 AM |
Classic Subfolders? | heaviside | Barnes & Noble NOOK | 5 | 09-25-2010 03:35 PM |