因为Windows (至少Windows )对ZIP文件有一些基本的支持,所以似乎应该有一个类似的命令行,但是我似乎找不到一个类似的命令行。
Windows (XP、Vista、7、8、2003、2008、2013)是否附带内置命令行压缩工具,还是需要使用第三方工具?
发布于 2009-07-10 18:37:57
它不是内置在Windows中的,但它在资源工具包工具中作为COMPRESS
,
C:\>compress /?
Syntax:
COMPRESS [-R] [-D] [-S] [ -Z | -ZX ] Source Destination
COMPRESS -R [-D] [-S] [ -Z | -ZX ] Source [Destination]
Description:
Compresses one or more files.
Parameter List:
-R Rename compressed files.
-D Update compressed files only if out of date.
-S Suppress copyright information.
-ZX LZX compression. This is default compression.
-Z MS-ZIP compression.
Source Source file specification. Wildcards may be
used.
Destination Destination file | path specification.
Destination may be a directory. If Source is
multiple files and -r is not specified,
Destination must be a directory.
示例:
COMPRESS temp.txt compressed.txt
COMPRESS -R *.*
COMPRESS -R *.exe *.dll compressed_dir
发布于 2009-07-10 18:33:39
据我所知没有。就第三方工具而言,7zip有一个非常好的命令行界面,二进制文件可以与应用程序一起分发到应用程序的目录中,所以您不必依赖它提前安装。
发布于 2009-07-11 08:29:21
https://serverfault.com/questions/39071
复制相似问题