GZIP |
Purpose: | Create or update .gz (GZIP) archives |
Format: | GZIP [/A:[[-][+]rhsdaecjot] /A /En /Ln /M /O:[-]adegnrstu /Q /V] gziparchive [@file] file |
gziparchive | The gzip file to work with |
file | The files to be added to the gzip file |
See also UNGZIP.
File Selection
Supports attribute switches, extended wildcards, ranges, multiple file names, and include lists.
Usage:
GZIP is compatible with the archives created by the Linux / UNIX gzip utility, and supports RFC 1952. GZIP is normally used for compressing a single file. If you need to compress multiple files, you should use the ZIP or TAR commands.
You can specify a pathname for gziparchive. If you don't provide an extension, and the filename as entered doesn't exist, GZIP adds ".gz". If you don't specify an operation, GZIP will default to Add.
Option:
/A:... | Select only those files that have the specified attribute(s) set. See Attribute Switches for information on the attributes which can follow /A:. Do not use /A: with @file lists. See @file lists for details. |
You can specify /A:= to display a dialog to help you set individual attributes.
You may use any combination of the sorting options below. If multiple options are used, the files will be sorted with the first sort option as the primary key, the next as the secondary key, and so on:
n | Sort by filename and extension, unless e is explicitly included. This is the default. |
- | Reverse the sort order for the next sort key |
a | Sort names and extensions in standard ASCII order, instead of numerically when numeric substrings are included in the name or extension. |
d | Sort by date and time (oldest first); also see /T:acw |
e | Sort by extension |
g | Group subdirectories first, then files |
r | Reverse the sort order for all options |
s | Sort by size |
t | Same as d |
u | Unsorted |
/V | View the contents of the .gz file (date, time, and filename). If the file was compressed with lzw, it will not have a header, so it cannot be viewed. |