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.

© 1985-2000 Microsoft Corporation. All rights reserved.



Microsoft Corporation Staff, IT Professional Staff - Microsoft Windows 2000 Server Operations Guide
Microsoft Corporation Staff, IT Professional Staff - Microsoft Windows 2000 Server Operations Guide
ISBN: N/A
EAN: N/A
Year: 2002
Pages: 404

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net