WZZIP reference
Usage:
wzzip [options] zipfile [@listfile] [files...]
For information on the
zipfile
,
listfile
, and
files
components, see Using WZZIP. The
options
are as follows. Notes:
Options are case sensitive. For example,
-j
and
-J
are different.
"
[]
" indicates an optional element
"
|
" indicates a choice between elements
-a
Add files (default action).
wzzip
-
a test.zip *.txt
This example adds all the *.txt files in the current folder to test.zip. Note: this is the default action and does not need to be stated.
wzzip test.zip *.txt
Gives the same results as the example above.
wzzip
-
a
-
mtest.zip *.txt
This example moves all the .txt files to test.zip and removes them from the disk.
Related options
-a+
Remove the archive attribute from each file after adding it to the Zip file. As WinZip
®
adds a file during the zipping process, the file's archive attribute is reset.
wzzip
-
a+ test.zip *.txt
This example adds all the *.txt files in the current folder to test.zip and then resets the archive attribute.
Related options
-b[drive|path]
Use another drive for the temporary Zip file. Since WZZIP creates a new, temporary Zip file when it updates a file, sufficient space must be available on the current drive for that file. This option enables you to use another drive for that purpose when space considerations force the issue.
wzzip
-
bd:\temp test.zip c:\temp\*.txt
This example creates the temporary Zip file in the d:\temp folder and adds all the text files in the c:\temp folder to the test.zip file.
-c
Create or edit existing comments for all the files in the Zip file.
wzzip
-
c d:\temp\test.zip
Used to add a comment to files contained within a Zip file
wzzip
-
c
-
z d:\temp\test.zip
Adding the '-z' option allows you to create a new, or edit an existing, Zip file comment. Note: To view a file comment in Zip file, view the properties of the Zip file using -v.
Related options
-C
Create comments only for files being added that are not already in the Zip file.
Page 1 of 9WZZIP reference3/11/2009mk:@MSITStore:C:\Program%20Files\WinZip\WZCLINE.CHM::/source/wzzip_com
...
wzzip -o d:\temp\test.zip
This operation changes the date and time of the Zip file to match the date and time of the newest file contained within the Zip file. Note: The -o switch is used as part of an add operation. If no exclusion switches are used, WZZIP will assume '*.*' and will add any files existing in the current folder.
Related options
-p|P
Store folder names. A lower case
p
stores only the names of folders recursed (subfolders included) via the
-r
option, while an upper case
P
stores all folder information specified on the command line or in the listfile.
Use with the -r option.
In the following examples, assume this folder structure:
Level1\LevelA
Level1\LevelB
Level1 contains the file file1.txt Level1\LevelA contains two files, a1.txt and a2.txt Level1\LevelB contains two files, b1.txt and b2.txt
wzzip -p -r d:\temp\test.zip d:\level1\*.*
This creates test.zip containing file1.txt, folder Level1\LevelA with files a1.txt and a2.txt, and folder Level1\LevelB with files b1.txt and b2.txt. Note that the folder Level1 itself does not get included. Extracting from test.zip will create the following files and folders in the extract-to folder: File1.txt LevelA\a1.txt LevelA\a2.txt LevelB\b1.txt LevelB\b2.txt
wzzip -P -r d:\temp\test.zip d:\level1\*.*
This creates test.zip with folder Level1 containing file file1.txt, folder Level1\LevelA containing files a1.txt and a2.txt, and folder Level1\LevelB containing files b1.txt and b2.txt. Extracting from test.zip will create the following files and folders in the extract-to folder: Level1\file1.txt Level1\LevelA\a1.txt Level1\LevelA\a2.txt Level1\LevelB\b1.txt Level1\LevelB\b2.txt
Related option
-r
Recurse into subfolders (include subfolders). This option requires the
-p
or
-P
option. See examples under
-p|P
option above.
Related option
-s[password]
Specifies use of encryption. If the password is not provided, the add-on will prompt for one. Passwords provided on the command line that contain spaces must be enclosed in double quotes. Please read this important information About Encryption. Note: the
-yc
option (below) can be used to change the encryption method to one of the AES encryption methods.
wzzip -spassword d:\temp\test.zip *.*
Page 4 of 9WZZIP reference3/11/2009mk:@MSITStore:C:\Program%20Files\WinZip\WZCLINE.CHM::/source/wzzip_com
...
Zip all files in current folder into test.zip with Zip 2.0 encryption and a password of password.
wzzip -spassword -yc d:\temp\test.zip *.*
Zip all files in current folder into test.zip with AES 128 (default method for -yc option) encryption and give all files in test.zip a password of password.
wzzip -spassword -ycAES d:\temp\test.zip *.*
Zip all files in current folder into test.zip with AES 128 encryption and give all files in test.zip a password of password.
wzzip -spassword -ycAES128 d:\temp\test.zip *.*
Zip all files in current folder into test.zip with AES 128 encryption and give all files in test.zip a password of password.
wzzip -spassword -ycAES256 d:\temp\test.zip *.*
Zip all files in current folder into test.zip with AES 256 encryption and give all files in test.zip a password of password.
Related option
-t[f|d][date]
Include files with a date equal to or more recent than the date specified (current date if no date specified). Date formats
without
the
f
modifier depend on country settings; examples with and without delimiters: United States: mmdd[yy]yy or [m]m/[d]d/[yy]yy Japan: [yy]yymmdd or [yy]yy/[m]m/[d]d Most of Europe: ddmm[yy]yy or [d]d.[m]m.[yy]yy valid delimiters are / . or - The
f
modifier indicates that the date is specified in either of the following country-independent formats, regardless of the system's locale settings: [yy]yymmdd [yy]yy-[m]m-[d]d Note that years can be specified as two or four digits. Two-digit years less than 80 are assumed to be 20##, while two-digit dates greater than or equal to 80 are assumed to be 19##. The
d
modifier indicates that the date specified is the number of days elapsed instead of a specific date.
wzzip -t090104 d:\temp\test.zip *.*
Add all files in current folder to test.zip that have a date equal to or more recent than September 1, 2004. Note: This date format is country specific, in this example U.S. format is used.
wzzip -tf20040901 d:\temp\test.zip *.*
Add all files in current folder to test.zip that have a date equal to or more recent than 2004 September 01. Note: this date format is NOT country specific.
wzzip -td8 d:\temp\test.zip *.*
Add all files in the current directory that are 8 days old or more recent. The
d
modifier allows you to specify a number of days rather than a date.
Related option
-T[f|d][date]
Include files older than the date specified (current date if no date specified) Date formats without the
f
modifier depend on country settings; examples with and without delimiters: United States: mmdd[yy]yy or [m]m/[d]d/[yy]yy
Page 5 of 9WZZIP reference3/11/2009mk:@MSITStore:C:\Program%20Files\WinZip\WZCLINE.CHM::/source/wzzip_com
...
Japan: [yy]yymmdd or [yy]yy/[m]m/[d]d Most of Europe: ddmm[yy]yy or [d]d.[m]m.[yy]yy valid delimiters are / . or - The
f
modifier indicates that the date is specified in either of the following country-independent formats, regardless of the system's locale settings: [yy]yymmdd [yy]yy-[m]m-[d]d Note that years can be specified as two or four digits. Two-digit years less than 80 are assumed to be 20##, while two-digit dates greater than or equal to 80 are assumed to be 19##. The
d
modifier indicates that the date specified is the number of days elapsed instead of a specific date.
wzzip -T090104 d:\temp\test.zip *.*
Add all files in current folder to test.zip that have a date equal to or older than September 1, 2004. Note: This date format is country specific, in this example U.S. format is used.
wzzip -Tf20040901 d:\temp\test.zip *.*
Add all files in current folder to test.zip that have a date equal to or older than 2004 September 01. Note: this date format is NOT country specific.
wzzip -Td8 d:\temp\test.zip *.*
Add all files in the current directory that are 8 days old or older. Note: the 'd' modifier allows you to specify a number of days versus a date.
Related option
-u
Update: add files that are new or have changed. This command adds to the Zip file any files that are not already in the Zip file, and replaces any files that have a more recent date on disk. Put another way, this command is the same as
-a
(Add) except that it skips files that are already in the Zip file and have the same date in the Zip file and on disk.
wzzip -u d:\temp\test.zip *.*
Used to update existing Zip files. The above adds new files or updated files found in the current folder to test.zip. If a file currently exists in the Zip file, only add it if the date on disk is newer than the date of the file in the Zip file.
Related option
-v[b|t] [r][m][c] [d|e|n|o|p|s] [f]
View the list of files in the Zip file in one of the following formats: normal,
b
rief, or
t
echnical.
r
reverses the sort order,
m
(more) pauses after each screen, and
c
displays any file comment. You can optionally sort by
d
ate,
e
xtension (file type),
n
ame,
o
riginal order,
p
ercentage compression, or uncompressed
s
ize. The
f
modifier causes the date to be displayed in the format yyyy-mm-dd regardless of the local system's display settings.
wzzip -v d:\temp\test.zip
This allows you to view the contents of the Zip file without unzipping it. A listing of the files and file information (File length, Compression method, file size, compression ratio, file date, file time, file CRC-32, file attribute, file name) are returned to the screen.
wzzip -v d:\temp\test.zip >test.txt
Redirects all file information for test.zip to a file called test.txt. This may be easier to read for large Zip files.
wzzip -vb d:\temp\test.zip (brief file description)
A listing of the files and file information (File length, file size, compression ratio, file
Page 6 of 9WZZIP reference3/11/2009mk:@MSITStore:C:\Program%20Files\WinZip\WZCLINE.CHM::/source/wzzip_com
...
date, file time, file name) are returned to the screen.
wzzip -vt d:\temp\test.zip (technical description)
Get a listing of the files and file information (File name, file type, attribute, file date and time stamp, compression method, compressed file size, uncompressed size, 32-bit CRC value, created by, needed to extract) returned to the screen.
wzzip -vtr d:\temp\test.zip
Get a technical listing of files and show them in reverse sort order.
wzzip -vmd:\temp\test.zip
Get a list of files contained within test.zip and display the list one screen at a time.
wzzip -vtmd d:\temp\test.zip
Get a technical listing of files contained within the Zip file and display one screen of data at a time. Sort the file information by date.
wzzip -vbme d:\temp\test.zip
Get a brief listing of files contained in test.zip, display one screen of data at a time and sort the file listing by file type/extension).
Related options
-vi[m]
View the Zip file's internal information. Use the optional "m" suffix to prevent text from scrolling off the screen.
wzzip -vimd:\temp\test.zip
Give a listing of the Zip files information similar to the properties/details function in the GUI interface. The 'm' operator gives one screen full at a time.
Related options
-whs
Include hidden and system files in the zipping process.
wzzip -whs d:\temp\test.zip *.*
Zip all files in the current folder including system and hidden files.
Related options
-Whs
Exclude hidden and system files from the zipping process (default).
wzzip -Whs d:\temp\test.zip *.*
Zip all files in the current folder except system and hidden files. Note: this is the default action and is assumed even if -Whs does not appear in the command.
Related options
-x<filename>
Exclude the specified file(s) from the zipping process. Wildcards are allowed.
wzzip -x*.txt d:\temp\test.zip *.*
Creates test.zip and includes all files in the current folder except .txt files.
wzzip -xd:\taxes\2004\*.* d:\taxes\taxarchive.zip d:\taxes\*.*
Creates a Zip file in d:\taxes called taxarchives.zip and includes all folders and files in the d:\taxes folder structure EXCEPT the folder d:\taxes\2004. Note:
-x*\
can be used to exclude empty folders.
Related options
-x@listfile
Exclude the files listed in the specified listfile from the zipping process. This listfile uses the same format as the listfile used to specify files to be zipped (see Using WZZIP). Note: To exclude an entire folder use
foldername
\*.*.
Page 7 of 9WZZIP reference3/11/2009mk:@MSITStore:C:\Program%20Files\WinZip\WZCLINE.CHM::/source/wzzip_com
...