COMPRESS – Windows CMD Command

Compress one or more files.

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

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

Key
   -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
        Destination file | path specification.
        Destination can be a directory.

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

Examples:

COMPRESS demo.txt compressed.txt

COMPRESS -R *.*

COMPRESS -R *.exe *.dll compressed_dir

You may also like...

2 Responses

  1. wasreset says:

    wonderful content

  2. zortilo nrel says:

    I do agree with all of the ideas you’ve presented in your post. They are very convincing and will certainly work. Still, the posts are very short for beginners. Could you please extend them a little from next time? Thanks for the post.

Leave a Reply

Your email address will not be published. Required fields are marked *