compact
嚯嚯 发表于 2020-06-29 13:37浏览次数:
在compact的命令来压缩文件,或解压缩它们,使它们可见。
The compact command is used to compress files, or uncompress them so that they are viewable.
目录:
1 compact 运行系统环境
2 compact 语法
3 compact 示例
compact 运行系统环境
Windows xp
Windows vista
Windows 2000
Windows 7
Windows 8
Windows 10
compact 语法
显示或更改NTFS分区上文件的压缩。
COMPACT [/C | /U] [/S[:dir]] [/A] [/I] [/F] [/Q] [file name [...]]
/C
|
压缩指定的文件。目录将被标记,以便以后添加的文件将被压缩。
|
/U
|
解压缩指定的文件。目录将被标记,以便以后添加的文件不被压缩。
|
/S
|
对给定目录和所有子目录中的文件执行指定的操作。默认的“ dir”是当前目录。
|
/A
|
显示具有隐藏或系统属性的文件。这些文件默认情况下被忽略。
|
/I
|
即使发生错误,也继续执行指定的操作。默认情况下,COMPACT在遇到错误时停止。
|
/F
|
在所有指定的文件上强制执行压缩操作,即使已压缩的文件也是如此。默认情况下会跳过已压缩的文件。
|
/Q
|
仅报告最基本的信息。
|
file name
|
指定模式,文件或目录。
|
不带参数使用时,COMPACT显示当前目录及其包含的任何文件的压缩状态。您可以使用多个文件名和通配符。您必须在多个参数之间放置空格。
Displays or alters the compression of files on NTFS partitions.
COMPACT [/C | /U] [/S[:dir]] [/A] [/I] [/F] [/Q] [file name [...]]
/C
|
Compresses the specified files. Directories will be marked so that files added afterward will be compressed.
|
/U
|
Uncompresses the specified files. Directories will be marked so that files added afterward are not compressed.
|
/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 that are already compressed. Already-compressed files are skipped by default.
|
/Q
|
Reports only the most essential information.
|
file name
|
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 file names and wildcards. You must put spaces between multiple parameters.
compact 示例
compact
显示当前目录中的所有文件及其压缩状态。
compact file.txt
显示file.txt文件的压缩状态。
compact file.txt /C
压缩file.txt文件。
compact
Display all the files in the current directory and their compact status.
compact file.txt
Display the compact status of the file.txt file.
compact file.txt /C
Compacts the file.txt file.