[SOLVED] How to create a bat file for my 7zip compressions

Prateek Bhardwaj

Distinguished
Dec 17, 2013
35
0
18,530
Hi guys,

So I compress files a lot with 7zip and mostly use these settings

Archive-7z
level - Ultra
method - LZMA2
dictionary - 64mb
word size - 64
solid size - 4gb
threads - 8
update mode - add and replace files
path mode - relative
option - delete files after compression

I mostly compress folders and sometimes individual files. How can I make a bat file to automate and speed up my task? Please keep in mind I need it for both Folders and Files.
 
Solution
https://7ziphelp.com/7zip-command-line

Should be able to put that directly in a .bat file.

I would probably try to resort to Powershell since that is more recent technology, little more complicated, but worth it in the end.

Also old school vbscript, but that is a pretty steep learning curve (though honestly an easier to read language than PowerShell)