We help IT Professionals succeed at work.

I need to unzip all files in a folder using SSIS.

Last Modified: 2013-11-30
I need to unzip all files in a folder using SSIS. Right now I am able to unzip individual files by hardcoding their names. I want all to be done at once.
Watch Question

You could call a program like 7-zip (7za.exe needs no installation) from the a script control in SSIS.


When I am trying to use a execute process task and providing the winzip32.exe in executables. I am facing problems in sending all zip file names as argument to that. Please let me know how to send the file names as an argument in execute process task.

If you use 7-zip you can execute it in a shell from a VB.NET script control


Thanks. Can you please send me 1 example on how to use 7-zip and execute it in a shell from a VB.NET script control.

I;ve edited some old vbScript I have but a function to zip a file should look something like this:

Private Sub ZipFile(ByVal sFromPath As String, ByVal sToPath As String, ByVal sFromFileName As String, ByVal sToFileName As String)

        Dim s7za As String = "C:\Program Files\7-Zip\7za.exe"
        Dim sArguments As String
        Dim myProcess As New System.Diagnostics.Process

        Dim sFullFromFileName As String
        Dim sFullZipFileName As String

        sFullFromFileName = sFromPath & sFromFileName
        sFullZipFileName = sToPath & sToFileName

        sArguments = " a -tzip -mx1 -y  """ & sFullZipFileName & """ """ & sFullFromFileName & """"
        myProcess.Start(s7za, sArguments)

    End Sub


This script is agin to zip a single file. I am in need of unzipping all files in a folder.

You could call it once for each file in the folder and it will add each file to the zip


How can I do that using the "Execute Process Task" in SSIS. Can you please explain me that?

You can do it from a script control. You can just write .NET code in a scriipt control so can erxecute things using System.Diagnostics.Process.
This one is on us!
(Get your first solution completely free - no credit card required)

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.