由于
Windows资源管理器(至少从Windows XP)对ZIP文件有一些基本的支持,似乎应该有一个等效的命令行,但我似乎找不到任何一个的迹象.
Windows(XP,Vista,7,8,2003,2008,2013)是否附带内置命令行zip工具,还是需要坚持使用第三方工具?
它不是内置在Windows中,但它在
Resource Kit Tools中作为COMPRESS,
原文链接:https://www.f2er.com/windows/370967.htmlC:\>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