Windows

compact

SafeNTFS compression

compact /c /s <dir>

Compresses files in place on NTFS (/u to undo) — easy space recovery for cold data.

Examples

  • compact /c /s:C:\archiveCompress an archive tree

Syntax

compact [/c|/u] [/s] [/exe] [files]

Before you run it

Transparent compression only.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store