Batch file zip Answered

8 Replies

After a few hours of trying I still didn't get very far. Can someone post some code that would use 7zip that in a Batch file would zip up a file called testzip?
C:\ziptest and apply a password of jj2154 to it.
Thanks!!

. Change "C:\WINDOWS\Fonts\*" to point to the directory you want to ZIP and Password to whatever you want.. 7z - invokes the program. a - add files. -tzip - use ZIP format. C:\testzip.zip - name of destination file. C:\WINDOWS\Fonts\* - files to compress (your fonts, in this case). -r - recurse subdirectories (not needed if there are no subdirs or you don't want to compress them). -pPassword - sets password to "Password"