How do I unzip a file using code in a Script Task in an SSIS package

  • How do I unzip a file using code in a Script Task in an SSIS package?  Would appreciate any kind of input on this.

     

    Thanks,

    Monisha

  • I would use the Execute Process task and call your Unzip utility as you would from the command line.


    Cheers,

    Diane

  • http://p2p.wrox.com/topic.asp?TOPIC_ID=29217

     

    MohammedU
    Microsoft SQL Server MVP

  • Thanks for your input.  I will use execute process method, and I do have winzip installed on the box but no winunzip.exe file is a part of that install.  This is probably not the right forum for this, but if you have any suggestions at all it will be much appreciated.

    Thanks again,

    Monisha

  • Go to the website for winzip and download the optional winzip command line.

    The executable "wzunzip.exe" is the command-line unzipper that can be easily called from an exec process task.

  • wzunzip.exe" is the command-line unzipper is not available for Win 2003 Server.  I just checked and we have the Integration Services running on a Win 2003 server. 

    Any other inputs will be much appreciated.

     

    Thanks.

  • Check windows COMPACT command with /U switch... 

    MohammedU
    Microsoft SQL Server MVP

  • The windows compact command with the /u option does not seem to work:

     

    C:\Documents and Settings\Administrator>compact /u "C:\ETL\POSData\IngramWeekly

    INVEN.ZIP"

     Uncompressing files in C:\ETL\POSData\IngramWeekly\

    0 files within 1 directories were uncompressed.

     

    Any other inputs will be appreciated.

  • Sorry! my bad... I didn't check the correctly that command...

    Looks like you are out of luck.... you can use free third party command utilities..

    http://www.picozip.com/command-line.html

    http://www.7-zip.org/

     

    MohammedU
    Microsoft SQL Server MVP

  • Thanks that helps.

Viewing 10 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic. Login to reply