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

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

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

它不是内置在Windows中,但它在 Resource Kit Tools中作为COMPRESS,
  1. C:\>compress /?
  2.  
  3. Syntax:
  4.  
  5. COMPRESS [-R] [-D] [-S] [ -Z | -ZX ] Source Destination
  6. COMPRESS -R [-D] [-S] [ -Z | -ZX ] Source [Destination]
  7.  
  8. Description:
  9. Compresses one or more files.
  10.  
  11. Parameter List:
  12. -R Rename compressed files.
  13.  
  14. -D Update compressed files only if out of date.
  15.  
  16. -S Suppress copyright information.
  17.  
  18. -ZX LZX compression. This is default compression.
  19.  
  20. -Z MS-ZIP compression.
  21.  
  22. Source Source file specification. Wildcards may be
  23. used.
  24.  
  25. Destination Destination file | path specification.
  26. Destination may be a directory. If Source is
  27. multiple files and -r is not specified,Destination must be a directory.

例子:

  1. COMPRESS temp.txt compressed.txt
  2. COMPRESS -R *.*
  3. COMPRESS -R *.exe *.dll compressed_dir

猜你在找的Windows相关文章