Managing File Systems
File and Folder Attributes
Compact Command-Line
The Compact command-line offers more control over file and folder compression than Windows Explorer. For example, you can use the Compact command with a batch script or to compress only files that meet a specific criterion (for example, all the DOC files in a specific folder).
compact filename
compact /u filename
Option Purpose /C Compresses the specified file or folder /U Uncompresses the specified file or folder /S:dir Specifies which folder should be compressed or uncompressed /A Displays any files that have hidden or system file attributes /I Indicates that any errors should be ignored /Q Reports only critical information, when used with reporting /? Displays help