Export (0) Print
Expand All

Compress: Compresses Files or Folders

Compress is a command-line utility that can be used to compress one or more files. You cannot open a file that has been compressed using this utility until you have expanded it with Expand. To use this program, at the command line type:

compress

with the appropriate options. Table 3.16 describes the options available with Compress. The syntax of the command is:

compress [– r ] [– d ] source [ destination ]

Table   3.16 Compress Options

Option

Description

r

Renames compressed files.

d

Updates compressed files only if out of date.

source

Specifies the source file. The asterisk ( * ) and question mark ( ? ) wildcard characters can be used.

destination

Specifies the destination file or path. The destination can be a folder. If source specifies multiple files and the – r option is not specified, then destination must be a folder.

note-icon

Note

Do not use Compress to compress files or folders on NTFS volumes. Instead, compress NTFS files and folders with Compact or by setting or clearing the Compressed attribute in My Computer. For information about using My Computer, see "Compact: Compresses and Decompresses NTFS Files and Folders" earlier in this chapter.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft