Below is some information about the undocumented command line options for using the WinZip program module, winzip32.exe.
WinZip supports command line options to add and extract from files. Be sure to read the Notes section below for additional important information.
The command format is:
winzip32 [-min] action [options] filename[.zip] fileswhere:
-min specifies that WinZip should run minimized. If -min is specified, it must be the first command line parameter.
-a for add, -f for freshen, -u for update, and -m for move. You must specify one (and only one) of these actions. The actions correspond to the actions described in the section titled "Add dialog box options" in the online manual.
-r corresponds to the Include subfolders checkbox in the Add dialog and causes WinZip to add files from subfolders. Folder information is stored for files added from subfolders. If you add -p, WinZip will store folder information for all files added, not just for files from subfolders; the folder information will begin with the folder specified on the command line.
-ex, -en, -ef, -es, and -e0 determine the compression method: eXtra, Normal, Fast, Super fast, and no compression. The default is "Normal". -hs includes hidden and system files. Use -sPassword to specify a case-sensitive password. The password can be enclosed in quotes, for example, -s"Secret Password".
Specifies the name of the Zip file involved. Be sure to use the full filename (including the folder).
Is a list of one or more files, or the @ character followed by the filename containing a list of files to add, one filename per line. Wildcards (e.g. *.bak) are allowed.
The command format is:
winzip32 -e [options] filename[.zip] folderwhere -e is required.
-o and -j stand for "Overwrite existing files without prompting" and "Junk pathnames", respectively. Unless -j is specified, folder information is used. Use -sPassword to specify a case-sensitive password. The password can be enclosed in quotes, for example, -s"Secret Password".
Specifies the name of the Zip file involved. Be sure to specify the full filename (including the folder).
Is the name of the folder to which the files are extracted. If the folder does not exist it is created.
compress=c:\winzip\winzip.exe -a %1 @%2