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.

    • Related Articles

    • 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" ...
    • Does COZYROC's Zip Task support the 7z compression format?

      No, the Zip Task does not support the 7z compression format.
    • Error Message: ZIP Task: size was 0, but I expected 25500

      Action: When I run a package including the ZIP Task Component, I get the following error: Error Message: [Zip Task] Error: An error occurred with the following error message: "size was 0, but I expected 25500". Solution: A possible reason for this ...
    • 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 ...
    • 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 ...