Windows – How to zip multiple folders in 7zip

7-zipcompressionwindowszip

I have a folder, lets say, MAIN. Inside this folder, there are many folders(say f1,f2,f2...) which has subfolders and files in them. Now I need to zip these folders(f1,f2,f3...) and their contents (which might be subfolders and files) into separate zips(f1.7z, f2.7z, f3.7z ...) and put them under MAIN folder.

Also, I need to use these settings for all the zips.
.7z, LZMA2, Ultra, 1024MB(Dictionary size), 273(Word size), Solid, Compress shared files.
How can I do this?

Best Answer

Running a basic batch compress job can be done thus. You will however need to edit the command as necessary to accommodate your specific requirements. This can be done through the use of various 'switches'; the syntax for doing so is available here.

Related Question