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.

      • Related Articles

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