Windows是否具有命令行的内置ZIP命令?

前端之家收集整理的这篇文章主要介绍了Windows是否具有命令行的内置ZIP命令?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
由于 Windows资源管理器(至少从Windows XP)对ZIP文件有一些基本的支持,似乎应该有一个等效的命令行,但我似乎找不到任何一个的迹象.

Windows(XP,Vista,7,8,2003,2008,2013)是否附带内置命令行zip工具,还是需要坚持使用第三方工具?

它不是内置在Windows中,但它在 Resource Kit Tools中作为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

猜你在找的Windows相关文章