compact

NTFS パーティション上のファイルの圧縮状態を表示または変更します。

ファイル圧縮ユーティリティ


compact

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

Output:

NTFS パーティション上のファイルの圧縮状態を表示または変更します。

COMPACT [/C | /U] [/S[:ディレクトリ]] [/A] [/I] [/F] [/Q]
        [/EXE[:アルゴリズム]] [/CompactOs[:オプション] [/WinDir:ディレクトリ]] [ファイル名 [...]]

  /C           指定されたファイルを圧縮します。/EXE を指定しない限り、
               ディレクトリは、後で追加されたファイルが圧縮されるように
               マークされます。
  /U           指定されたファイルを圧縮解除します。ディレクトリは、後で
               追加されたファイルが圧縮されないようにマークされます。
               /EXE を指定した場合は、実行可能ファイルとして圧縮された
               ファイルだけが圧縮解除されます。/EXE を省略した場合は、
               NTFS 圧縮ファイルだけが圧縮解除されます。
  /S           指定されたディレクトリおよびそのサブディレクトリにある
               ファイルに、指定された操作を実行します。
               "ディレクトリ" の既定値は現在のディレクトリです。
  /A           隠しファイルやシステム ファイルも表示します。既定の設定では、
               これらのファイルは省略されます。
  /I           エラーが発生した場合でも、指定された処理を続行します。
               既定の設定では、エラーが発生すると COMPACT は
               停止されます。
  /F           圧縮済みのファイルも含めて、指定されたすべてのファイルを
               強制圧縮します。既定の設定では圧縮済みのファイルはスキップ
               されます。
  /Q           重要な情報だけを報告します。
  /EXE         頻繁に読み取られ、変更されることのない実行可能ファイルに合わせて
               最適化された圧縮を使用します。次のアルゴリズムがサポートされています:
               XPRESS4K  (最速) (既定)
               XPRESS8K
               XPRESS16K
               LZX       (最小)
  /CompactOs   システムの圧縮状態を設定または照会します。次のオプションがサポートされます。
               query  - システムの圧縮状態を照会します。
               always - すべての OS バイナリを圧縮し、システムの状態を
                        圧縮に設定します。この状態は、管理者が変更しない限りそのままになります。
               never  - すべての OS バイナリを圧縮解除し、システムの状態を
                        無圧縮に設定します。この状態は、管理者が変更しない限りそのままになります。
  /WinDir    オフラインの OS を照会するときに、/CompactOs:query と共に使用します。
             Windows がインストールされているディレクトリを指定します。
  ファイル名   パターン、ファイル、またはディレクトリを指定します。

  パラメーターを指定せずに COMPACT を実行すると、現在のディレクトリと
  ディレクトリに含まれるすべてのファイルの圧縮状態を表示します。
  複数のファイル名やワイルド カードを指定できます。複数のパラメーターを
  指定する場合は、パラメーターをスペースで区切ってください。
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:46
LastWrite Time2019/12/07 18:08:46
ProductVersion10.0.19041.1889
FileVersion10.0.19041.1889 (WinBuild.160101.0800)
HashValue
MD5278549bbd0ce09f011c1b8481576ca0c
SHA18ad4ff0884ad295489495edcceecaf2595d96ff3
SHA2244641056866e2cb1041a8d3cb674a0cfc028bfec7d4ae03c74f483803
SHA2566245640e75e1e55af426f8d9a779b8478f8034479ad5ca7d49e5bebeb823b76a
SHA3844dd1dcdd1e49d0d078a0908383c1aeba29e723c5844103e9e7443d24751357bdb1a0a2d3e4d2af0a4fbecf10b55db9db
SHA512ab07478ddf1a38b1e39d1ea31fcb47cb4b3b24d68b2091109d303216f8490cae94ee9bd468b53b6b15cbbe50e513160fded583babfec575b10a8f39a4e34c26b
Built with Hugo
テーマ StackJimmy によって設計されています。