Contents
What does the Compact command do?
The compact command is used to compress data on NTFS volumes from the Windows Command Prompt or command line. It can also be used to display the current compression status of folders or files.
How do I use Windows Compact?
Simply type the command Compact.exe /CompactOS:query and press Enter. The system will now inform you whether the feature is active or not. As shown below, the system is not in its Compact state which means that it can be readily enabled. Now use the command Compact.exe /CompactOS:always and press Enter.
How do I use compact command in Windows?
1 Answer. Displays or alters the compression of files on NTFS partitions. COMPACT [/C | /U] [/S[:dir]] [/A] [/I] [/F] [/Q] [filename […]] It does the same as going to the folder properties and chosing “Compress contents to save disk space” – it does not create a ZIP (or similar) archive.
Is there any command that compacts a directory?
Every so often, some application runs wild and fills a directory with a huge amount of files. Once we fix the bug and clean up the files, the directory stays big (>50MB) even though there’s only 20-30 files in it. Is there some command that compacts a directory without having to recreate it?
What does compact mean in NTFS command line?
The compact command is the command-line version of the NTFS file system compression feature. The compression state of a directory indicates whether files are automatically compressed when they are added to the directory.
How to compress files from the root directory?
To compress a volume, from the root directory of the volume, type: This example sets the compression state of all directories (including the root directory on the volume) and compresses every file on the volume. The /i parameter prevents error messages from interrupting the compression process.
Can you use compact on FAT32 partitions?
Remarks The compact command is the command-line version of the NTFS file system compression feature. You cannot use compact to read, write, or mount volumes that have been compressed using DriveSpace or DoubleSpace. You cannot use compact to compress file allocation table (FAT) or FAT32 partitions.