use winrar command line to create zip archives

后端 未结 3 1630
余生分开走
余生分开走 2021-01-31 14:33

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
         


        
3条回答
  •  借酒劲吻你
    2021-01-31 15:15

    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
    

    not:

    a -afzip c:\test.zip c:\test.csv
    

    It works for me. I also got it to work in SSIS.

提交回复
热议问题