Name
NTFS Compression Utility — \windows\system32\compact.exe
Synopsis
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 |
---|---|
|
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 |
/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. |
Get Windows XP Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.