Have powershell zip the contents of a bunch of folders, individual zip for each folder
- by WebDevHobo
Recently, I asked how to do this with a .bat file and an answer was provided.
for /D %%d in (*.*) do "C:\Program Files\7-Zip\7z\7za.exe" a -tzip %%d.zip %%d
However, this proved useful only for folders that have no spaces in their name. The reason being that batch will do the following: if the folder name is "jef's vacation pics", the variables…