compact
Windows CMD · Files · available in the simulator
What it does
File and folder compression at the NTFS file system level.
Syntax
compact [/c | /u] [/s[:dir]] [/a] [/i] [/f] [/q] [archivo...]
Options and parameters
/CCompresses the specified files.
compact /c /s:C:\Datos/UUncompresses the specified files.
/SPerforms the operation on files in the specified directory and all subdirectories.
/AIncludes hidden and system files.
/IContinues performing the operation even if errors occur.
/FForces the operation on all specified files, even those already compressed.
/QReports only the most essential information.
compact /q/EXEOptimizes compression for executables that are read frequently.
Usage examples
compact /C archivo.txtcompact /U archivo.txtcompact /C /S carpetacompact /qcompact /c /s:C:\Datos
Notes and common mistakes
- Only works on NTFS volumes.