Winzip Command Line

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 FilesWinZip‘  or  in ‘C:Program Files(x86)WinZip 

Create a zip file:

You can use wzzip.exe utility for this.

Advertisement

The command is:

C:Program FilesWinZipwzzip  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 FilesWinZipwzzip 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.

Unzip files

The command for  unzipping files is:

C:Program FilesWinZipwzunzip   zipfilename   destination_folder

destination_folder is the directory where you want to keep the unzipped files.

Example:
We can unzip the file docs.zip to the directory E:Documents as follows

C:Program FilesWinZipwzunzip docs.zip E:Documents
Advertisement

1 thought on “Winzip Command Line”

  1. For about a month, I’ve been receiving a pesky “pop-up” window from you that encourages me to upgrade my currently registered version of WINZIP. Today, I took that step. However, I entire lost my ability to call wzzip.exe and wzunzip.exe. I rarely (if ever) use WINZIP; instead I call wzzip (or wzunzip) from thousands of batch files, FORTRAN programs (that I have written) or just manually out of a DOS window. Please help me to resolve this unacceptable situation

    Reply

Leave a Comment