See Also |
Zip |
Here is some information about the undocumented command line Options in WinZip 6.2.
WinZip supports command line options to add and extract from files. Be sure to read the Notes section below for important restrictions.
The command format is:
winzip[32].exe action [options] filename[.zip] fileswhere:
action
-a for add, -f for freshen, -u for update, and -m for move. These
actions correspond to the actions described in the section titled
"Adding files to an Archive" in the online manual.
options
-r and -p correspond to the "Recurse Directories" and "Save Extra
Directory Info" checkboxes in the Add and Drop dialog boxes. -ex, -en,
-ef, -es, and -e0 options determine the compression method: eXtra,
Normal, Fast, Super fast, and no compression. The default is "Normal".
The WinZip 6.3 Beta adds the -sPassword option. The password can be enclosed in quotes, for example, -s"Secret Password". Note that passwords are case-sensitive.
filename.zip
Specifies the name of the Zip file involved. Be sure to use the full
filename (including the directory).
files
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:
winzip[32].exe -e [options] filename[.zip] directorywhere:
-e
Is required.
options
-o and -j stand for "Overwrite existing files without prompting" and
"Junk pathnames", respectively. Unless -j is specified, directory
information is used.
The WinZip 6.3 Beta adds the -sPassword option. The password can be enclosed in quotes, for example, -s"Secret Password". Note that passwords are case-sensitive.
filename.zip
Specifies the name of the Zip file involved. Be sure to specify the full
filename (including the directory).
directory
Is the name of the directory to which the files are extracted. If the
directory does not exist it is created.
compress=c:\winzip\winzip.exe -a %1 @%2