如何使用Windows批处理脚本将.txt文件和文件夹压缩为单个zip文件?

时间:2018-10-03 16:14:04

标签: windows batch-file zip

如何将多个文件压缩为特定的zip文件名? 我正在使用Winzip 32

文件夹结构

C:\Documents\record.txt
C:\Documents\BlobFiles\abcd.pdf

现在,我想将record.txt和BlobFiles文件夹压缩为一个名为record.zip的压缩文件。 在C:\ Documents

导航下

输出应类似于

C:\Documents\record.txt
C:\Documents\BlobFiles\abcd.pdf
C:\Documents\record.zip

我正在使用以下脚本

"C:\Program Files (x86)\WinZip\winzip32.exe" -a "C:\Documents\record.zip" "C:\Documents\"

想将C:\ Documents下的所有内容都压缩到单个zip文件中。

谁能告诉我实现此目标的方法是什么?

谢谢, 湿婆

0 个答案:

没有答案