compact

File Compress Utility

File Compress Utility


compact

  • C:\Windows\system32\compact.exe /?

Output:

Displays or alters the compression of files on NTFS partitions.

COMPACT [/C | /U] [/S[:dir]] [/A] [/I] [/F] [/Q] [/EXE[:algorithm]]
        [/CompactOs[:option] [/WinDir:dir]] [filename [...]]

  /C         Compresses the specified files.  Directories will be marked
             so that files added afterward will be compressed unless /EXE
             is specified.
  /U         Uncompresses the specified files.  Directories will be marked
             so that files added afterward will not be compressed.  If
             /EXE is specified, only files compressed as executables will
             be uncompressed; if this is omitted, only NTFS compressed
             files will be uncompressed.
  /S         Performs the specified operation on files in the given
             directory and all subdirectories.  Default "dir" is the
             current directory.
  /A         Displays files with the hidden or system attributes.  These
             files are omitted by default.
  /I         Continues performing the specified operation even after errors
             have occurred.  By default, COMPACT stops when an error is
             encountered.
  /F         Forces the compress operation on all specified files, even
             those which are already compressed.  Already-compressed files
             are skipped by default.
  /Q         Reports only the most essential information.
  /EXE       Use compression optimized for executable files which are read
             frequently and not modified.  Supported algorithms are:
             XPRESS4K  (fastest) (default)
             XPRESS8K
             XPRESS16K
             LZX       (most compact)
  /CompactOs Set or query the system's compression state.  Supported options are:
             query  - Query the system's Compact state.
             always - Compress all OS binaries and set the system state to Compact
                      which remains unless administrator changes it.
             never  - Uncompress all OS binaries and set the system state to non
                      Compact which remains unless administrator changes it.
  /WinDir    Used with /CompactOs:query, when querying the offline OS. Specifies
             the directory where Windows is installed.
  filename   Specifies a pattern, file, or directory.

  Used without parameters, COMPACT displays the compression state of
  the current directory and any files it contains. You may use multiple
  filenames and wildcards.  You must put spaces between multiple
  parameters.

Return Code: 0


C:\Windows\system32\compact.exe
c:\>ver
Microsoft Windows [Version 10.0.19045.2075]
FileInfo
File Size48640bytes
Creation Time2019/12/07 18:08:26
LastWrite Time2019/12/07 18:08:26
ProductVersion10.0.19041.1
FileVersion10.0.19041.1 (WinBuild.160101.0800)
HashValue
MD5278549bbd0ce09f011c1b8481576ca0c
SHA18ad4ff0884ad295489495edcceecaf2595d96ff3
SHA2244641056866e2cb1041a8d3cb674a0cfc028bfec7d4ae03c74f483803
SHA2566245640e75e1e55af426f8d9a779b8478f8034479ad5ca7d49e5bebeb823b76a
SHA3844dd1dcdd1e49d0d078a0908383c1aeba29e723c5844103e9e7443d24751357bdb1a0a2d3e4d2af0a4fbecf10b55db9db
SHA512ab07478ddf1a38b1e39d1ea31fcb47cb4b3b24d68b2091109d303216f8490cae94ee9bd468b53b6b15cbbe50e513160fded583babfec575b10a8f39a4e34c26b
Built with Hugo
Theme Stack designed by Jimmy