COMPRESS.exe (2003 Resource Kit)

Compress one or more files. This is a very old utility from 1999, the files it generates may not be compatible with modern zip utilities.

      COMPRESS [-R] [-D] [-S] [ -Z | -ZX ] Source Destination

      COMPRESS -R [-D] [-S] [ -Z | -ZX ] Source [Destination]

   -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 can be used.

        Destination file | path specification.
        Destination can be a directory.   

If Source is multiple files and -r is not specified, Destination must be a directory.


Compress the file demo.txt into the C:\demo folder:

COMPRESS demo.txt c:\demo\

Compress all executables and DLL’s

COMPRESS -R *.exe *.dll compressed_dir

“In art, truth and reality begin when one no longer understands what one is doing or what one knows, and when there remains an energy that is all the stronger for being constrained, controlled and compressed” ~ Henri Matisse

Related commands

COMPACT - Compress files or folders on an NTFS partition.
IEXPRESS - Create a self extracting ZIP file archive.
MAKECAB - Create .CAB files.
TAR - Store, list or extract files in an archive.
Compress-Archive - PowerShell.
Zip a file - using only built-in Batch/VBS commands (

Copyright © 1999-2024
Some rights reserved