使用winrar命令行创建zip归档文件 [英] use winrar command line to create zip archives
本文介绍了使用winrar命令行创建zip归档文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用以下winrar命令行来创建zip归档文件:
I'm using the following winrar command line to create zip archives:
rar.exe a -df -ep -ag[yyyyMMddhhmmss] -ms[txt] C:\MyZipFile.zip C:\tmp\MyFiles*.txt
创建的归档文件为RAR格式,而不是ZIP格式.有没有办法创建常规的ZIP而不是RAR存档?
The archives created are in RAR format instead of ZIP. Is there a way to create regular ZIP and not RAR archives?
推荐答案
请确保您使用的是WinRAR.exe,而不是Rar.exe.
Make certain you are using WinRAR.exe and not Rar.exe.
如果您使用命令行来执行此操作,请确保键入:
If you are using the command line to do this make sure you type:
winrar a -afzip c:\test.zip c:\test.csv
不是:
a -afzip c:\test.zip c:\test.csv
对我有用.我也可以在SSIS中使用它.
It works for me. I also got it to work in SSIS.
这篇关于使用winrar命令行创建zip归档文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文