Guest User

compact.exe Windows 10 manual / help page

a guest
Oct 11th, 2020
43
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. compact /?
  2. Displays or alters the compression of files on NTFS partitions.
  3.  
  4. COMPACT [/C | /U] [/S[:dir]] [/A] [/I] [/F] [/Q] [/EXE[:algorithm]]
  5. [/CompactOs[:option] [/WinDir:dir]] [filename [...]]
  6.  
  7. /C Compresses the specified files. Directories will be marked
  8. so that files added afterward will be compressed unless /EXE
  9. is specified.
  10. /U Uncompresses the specified files. Directories will be marked
  11. so that files added afterward will not be compressed. If
  12. /EXE is specified, only files compressed as executables will
  13. be uncompressed; if this is omitted, only NTFS compressed
  14. files will be uncompressed.
  15. /S Performs the specified operation on files in the given
  16. directory and all subdirectories. Default "dir" is the
  17. current directory.
  18. /A Displays files with the hidden or system attributes. These
  19. files are omitted by default.
  20. /I Continues performing the specified operation even after errors
  21. have occurred. By default, COMPACT stops when an error is
  22. encountered.
  23. /F Forces the compress operation on all specified files, even
  24. those which are already compressed. Already-compressed files
  25. are skipped by default.
  26. /Q Reports only the most essential information.
  27. /EXE Use compression optimized for executable files which are read
  28. frequently and not modified. Supported algorithms are:
  29. XPRESS4K (fastest) (default)
  30. XPRESS8K
  31. XPRESS16K
  32. LZX (most compact)
  33. /CompactOs Set or query the system's compression state. Supported options are:
  34. query - Query the system's Compact state.
  35. always - Compress all OS binaries and set the system state to Compact
  36. which remains unless administrator changes it.
  37. never - Uncompress all OS binaries and set the system state to non
  38. Compact which remains unless administrator changes it.
  39. /WinDir Used with /CompactOs:query, when querying the offline OS. Specifies
  40. the directory where Windows is installed.
  41. filename Specifies a pattern, file, or directory.
  42.  
  43. Used without parameters, COMPACT displays the compression state of
  44. the current directory and any files it contains. You may use multiple
  45. filenames and wildcards. You must put spaces between multiple
  46. parameters.
RAW Paste Data