I'm trying to compress a folder structure like so:
Root
|_ Folder
|_Sub Folder 1
|_Files
|_Sub Folder 2
|_Files
|_ *more Sub Folders*
I need to create .zip file for each Sub Folder that contains the files within the Sub Folder, and needs to be named for the Sub Folder. So if I run the command within "Folder", I'd get a zip file named for each Sub Folder, with the contents of the Sub Folder only (not the Sub Folder just zipped up).
I've tried various for commands on Windows using 7-zip but can't seem to get it.
for /d %i in (*) do 7z a -oC:\Temp... %i.zip
That just zips the entire Folder contents and loops through creating an archive for each sub-folder name.
I appreciate any help you can provide!