Velocity Technical Archive
How to create individual .zip files from a bunch of subfolders
Published 2021-09-22 • Uncategorized
Archived Reference: This is a historical technical article preserved from the Velocity Technologies knowledge base. For current Phoenix and East Valley managed IT services, explore our managed IT services or cybersecurity solutions.
\n
If you run into an issue where you have a ton of folders and you want to create .zip archives of each one you can simply open the CMD.exe prompt and enter this one-liner(make sure WinRAR is installed first.
\n\n\n\n
for /D %I in ("G:\\ParentFolder\\*") do "%ProgramFiles%\\WinRAR\\Rar.exe" a -cfg- -ep1 -inul -m5 -r -- "%I.zip" "%I\\"
\n