How to compress multiple files

How to compress multiple files

You can specify multiple source files for compression in two different ways:

  • Specify source file(s) via File Connection Manager.
  • Specify source file(s) via package variable.

The first option is a little bit tricky. If you provide an existing file with a wildcard specification, the dialog will not validate it. To make this work, create a File Connection Manager which points at the existing file. After you close the dialog, right-click on the just created connection manager and click the Properties menu. Set the ConnectionString property to the required wildcard specification. The Zip Task will now compress all files which match the specified wildcard.


    Book a Presales Call


    Are you new to COZYROC and evaluating our solutions? 
    Book a Presales Call with us now and get 5% off SSIS+.
      • Related Articles

      • How to append files to existing archive

        Zip Task doesn't support appending files to existing archive. Use the workaround below to accomplish your goal: Setup Zip Task to extract the existing archive to a folder. Copy one or more files you want appended in the folder you have extracted. ...
      • Error Message: "Zip Task: Invalid source"

        Action: When executing a package, that includes Zip Task component and I am using a variable to specify the source each time through the enumeration inside of a Foreach loop, I get the following error:  Error Message: "Zip Task: Invalid source" ...
      • Error Message: Zip Task: "Length is zero Parameter name: seed"

         Action: When executing a package that includes Zip Task Component I get the following error message: Error Message:  "Length is zero Parameter name: seed" Solution:                          The reason for this error is that option ...
      • Does COZYROC's Zip Task support the 7z compression format?

        No, the Zip Task does not support the 7z compression format.
      • Where can I find the documentation for the Zip Task?

        You can find documentation related to all the COZYROC SSIS+ Component Suite components from the main products page.  Specific documentation for the Zip Task can be found at the following link.  For many of the components you can find resources like ...