COMPACT

RECENT NEWS

12/18/2015 - Hello! We're excited to announce that Mental Works Computing Software will soon be featuring

12/11/2015 - We're going to announce Dr.Batcher 3.0 Alpha with batch files debugger support soon. If you want to start...

News history...

TESTIMONIALS

Rob van der Woude:
"Mental Works Computing Software has created a nice tool for...

Andrew Jaritsyn:
“I used to write batch files with the help of Notepad, but...

Steve H.:
“This tool helped me to write some batch files in a couple...

More...

COMPACT

Displays or changes the compression of files and directories on NTFS partitions.

Syntax:

COMPACT [/c|/u] [/s:Dir] [/a] [/i] [/f] [/q] [FileName]

/c – compresses the specified file or folder.

/u ‑ uncompresses the specified file or folder.

/s – processes subdirectories of the specified directory. If Dir is not specified, it processes the subdirectories of the current directory.

/a – processes files with hidden or/and system attributes set.

/i – ignores errors.

/f – forces compression/uncompression operations for already compressed/uncompressed files (they are skipper by default).

/q – quiet mode: reports only essential information.

FileName – the name of file or directory to be compressed/uncompressed. Wildcards (*, ?) are allowed.

Usage:

Used without any parameters, COMPACT command shows the state of compression of the current folder and files in it.

The /f option is usually used for compressing partially-compressed due to the system crash files.

COMPACT command cannot be used for files and folders on FAT/FAT32 partitions.

Examples:

Display compression state of all subfolders:

COMPACT /s

Compress all files in current folder and subfolders:

COMPACT /c /s

 

Subscribe batch files programming newsletter (no spam):

Subscribe

Unsubscribe