WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Zipper

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Zipper and Password Encryption

Keywords: 	  Password Encryption WinZip Zip Zipper wzzip.exe wzzip

Question:

Using the zipper extender, does anyone know if it's possible to use password protected zip-files?

Answer:

Great news. Starting version 44011 of the Zipper Extender (Mar 17, 2010) we added password protection support!

However if you are running an older version of WinBatch and licensed with WinZip. You can install a commandline Add-on for WinZip. See: http://www.winzip.com/prodpagecl.htm

Once you have the commandline tool installed, try running the code below to zip a list of files using password protection.

NOTE: Please modify the variables variables as needed:

; Zip file with password into temp.zip
winzipcmdln = 'c:\program files\winzip\wzzip.exe' ; MODIFY AS NEEDED
password = 'zombie' ; MODIFY AS NEEDED
zipname =  'c:\dcf_highlands_1\temp.zip' ; MODIFY AS NEEDED
sourcedir = 'D:\dcf_worker_1\*.xls' ; MODIFY AS NEEDED
RunWait('cmd.exe', '/c ':'"':winzipcmdln:'" -ex -s ':password:'"':zipname:'" "':sourcedir:'"') ; Zip file with password into temp.zip
Exit

Article ID:   W12697
Filename:   Password Encryption.txt
File Created: 2017:07:28:12:58:55
Last Updated: 2010:09:16:09:43:59