NTFS Compression Utility


NTFS Compression Utility \ windows \system32\compact.exe

This tool allows you to view or configure the automatic file compression on NTFS drives from the command prompt. This feature can be more easily accessed by right-clicking on a file or folder, selecting Properties, clicking Advanced, and then turning on the "Compress contents to save disk space" option.

If you run the NTFS Compression Utility without any options, it will display the compression settings for the current directory and all its contents. The NTFS Compression Utility takes the following options:

 compact [/c  /u] [/s[:   dir   ]] [/a] [/i] [/f] [/q] [   filename   ] 

Opt

Description

filename

Specifies a file, folder, or group of files (using wildcards; see Chapter 6).

/c

Compresses the specified file(s) or mark the specified folder(s) such that any files added will be automatically compressed.

/u

Uncompresses the specified file(s); opposite of /c.

/s

If a folder is specified for filename , the /c and /u parameters will act only on new files added to the folder. Include the /s parameter as well to compress or uncompress files already in the folder. If filename is omitted, use the /s option to act on all files in the current folder.

/a

Includes files with hidden or system attributes set.

/i

Ignores errors.

/f

Forces compression on all already-compressed files.

/q

Quiet mode; report only the most essential information.



Windows XP Pocket Reference
Windows XP Pocket Reference
ISBN: 0596004257
EAN: 2147483647
Year: 2001
Pages: 154
Authors: David A. Karp

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