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

    • 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: 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 ...
    • 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: "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 ...