Zip a folder using SSIS

前端 未结 3 1075
没有蜡笔的小新
没有蜡笔的小新 2021-01-14 15:44

I am trying to zip a Folder in SSIS, there are 12 files in the source folder and I need to zipthat folder. I can get the files to zip fine my problem is the folders.

3条回答
  •  無奈伤痛
    2021-01-14 16:33

    Try using 7zip it is free. Take a look at 7zip command line user guide it contains all commands you need

    And use a script task or an execute process task to achieve this. Also there are other useful links:

    • https://www.dotnetperls.com/7-zip-examples

    UPDATE 1

    you can follow this link for winzip:

    • http://www.vbforums.com/showthread.php?202918-Well-WinZip-Command-Line-Folders-to-Zip-keep-folder-structure-

    In the link above they suggested using this command:

     wzzip "c:\Test.zip" "c:\myfolder" -exPR
    

提交回复
热议问题