查看壓縮情況
# /A Displays files with the hidden or system attributes.
# These files are omitted by default.
Z:\>compact /a
Listing Z:\ New files added to this directory will not be compressed. 0 : 0 = 1.0 to 1 $RECYCLE.BIN 0 : 0 = 1.0 to 1 backup 0 : 0 = 1.0 to 1 C SecurityDBBack 0 : 0 = 1.0 to 1 Software_Backup 0 : 0 = 1.0 to 1 System Volume Information Of 5 files within 1 directories 1 are compressed and 4 are not compressed. 0 total bytes of data are stored in 0 bytes. The compression ratio is 1.0 to 1.
設定壓縮
Compresses Subdirectories
/C Compresses the specified files.
Directories will be marked so that files added afterward will be compressed.
/S Performs the specified operation on files in the given directory and all subdirectories.
Default "dir" is the current directory.
compact /c /s:test_folder
Uncompresses
/U Uncompresses the specified files. Directories will be marked
so that files added afterward will not be compressed.