JSI Tip 10375. The COMPRESS.EXE Resource Kit utility.

Jerold Schulman

April 9, 2006

1 Min Read
ITPro Today logo in a gray background | ITPro Today


The Resource Kit installs the COMPRESS.EXE utilty.

When you open a CMD.EXE window and type compress /?, you receive:

 Syntax:   COMPRESS [-R] [-D] [-S] [ -Z | -ZX ] Source Destination   COMPRESS -R [-D] [-S] [ -Z | -ZX ] Source [Destination]Description:   Compresses one or more files.Parameter List:   -R           Rename compressed files.   -D           Update compressed files only if out of date.   -S           Suppress copyright information.   -ZX          LZX compression. This is default compression.   -Z           MS-ZIP compression.   Source       Source file specification. Wildcards may be                used.   Destination  Destination file | path specification.                Destination may be a directory. If Source is                multiple files and -r is not specified,                Destination must be a directory.Examples:    COMPRESS temp.txt compressed.txt    COMPRESS -R *.*    COMPRESS -R *.exe *.dll compressed_dir

When I typed compress -S -Z C:ZIPNEWkbLast.txt c:zipnewKblast.tx_, I received:

Compressing C:ZIPNEWkbLast.txt to c:zipnewKblast.tx_ using MS-ZIP compression.C:ZIPNEWkbLast.txt: 2602738 bytes compressed to 832278 bytes, 69% savings.Total savings: 1 files, 2602738 bytes compressed to 832278 bytes, 67% savings.



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like