Winzip is a freeware tool for zipping files. Default Winzip installation has GUI for creating zip files, for extracting files from zipped files etc. It does not have command line interface. But we can add command line interface to the winzip utility by installing the add-on available here. http://www.winzip.com/prodpagecl.htm You need to have Winzip version 12.0 or higher for installing the add-on.
Install the above add-on. Prerequisite for installing this is winzip and it should already be installed on the system. Once the CLI addon is installed, you can use the commands as shown below. These CLI commands can be found either in C:\Program Files\WinZip\‘ or in ‘C:\Program Files(x86)\WinZip\
Create a zip file:
You can use wzzip.exe utility for this.
The command is:
C:\Program Files\WinZip\wzzip filename.zip <list of files>
For example, to zip the files(file1.pdf, file2.pdf, file3.pdf) into docs.zip, the command we should run is
C:\Program Files\WinZip\wzzip docs.zip file1.pdf file2.pdf file3.pdf
In the above example, we have used 3 files, but you can specify as many files as you want.
The command for unzipping files is:
C:\Program Files\WinZip\wzunzip zipfilename destination_folder
destination_folder is the directory where you want to keep the unzipped files.
We can unzip the file docs.zip to the directory E:\Documents as follows
C:\Program Files\WinZip\wzunzip docs.zip E:\Documents