How to unzip a folder with multiple files using SSIS script task C# 2005 or 2008?

后端 未结 2 633
刺人心
刺人心 2021-01-20 03:06

There is a requirement in my project that I need to unzip some zip folder. I googled and came to know without using external libraries I can not achieve this or with G

2条回答
  •  深忆病人
    2021-01-20 03:21

    A) Declare a variable FileName as string datatype

    B) Use ForEach loop to loop through the files in the folder and map file names to FileName variable

    C) Use Execute Process task to zip/unzip to individual files

    D) Execute the package

    For steb by step short guide, see http://sqlserversolutions.blogspot.com/2008/10/zip-and-unzip-files-in-folder.html

    You might also want to have a look at this http://gallery.technet.microsoft.com/Unzipping-with-SSIS-Script-6b055183

提交回复
热议问题