@echo off for /D %%x in ("*") do ( "C:\Program Files\7-Zip\7z.exe" a -tzip "%%x.zip" "%%x" )