79646481

Date: 2025-05-31 09:33:46
Score: 1
Natty:
Report link

The most voted answers did not work for me on Windows 11. After a bit of fiddling and checking 7zip's command line options, I came up with this:

for /d %%X in (*) do ("C:\Program Files\7-Zip\7z.exe" a -tzip -r "%%X.zip" "%%X/*" )

Using this line in a batch file and executing said batch inside the desired main folder, all subfolders (with their respective contents) are zipped into individual zip files.

Reasons:
  • Blacklisted phrase (1): did not work
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ale2x72