A Microsoft Windows NT and Windows 2000 command used to compress or uncompress files and folders on an NTFS volume. The compact command can be used to display the compression status of a file or directory, or to change that status.
If a compression action is interrupted, resulting in a partially compressed file that is unreadable, you can use the compact command with the /f switch to force the full compression of the file. The command supports multiple filenames and wildcards.
compact /c /s compresses all files in the current directory and its subdirectories. For the full syntax of this command, type compact/? at the command prompt.