Zip action

The Zip action enables you to compress files and folders into a .zip format.

Procedure

  1. In the Actions palette, double-click or drag the Zip action from the Folder package.
  2. In the Specify file(s)/folder(s) to compress field, specify the location.
  3. In the Specify file type(s) to compress field, select one of the following options:
    • String: Specify the file extension.

      For example, you can specify .txt and .png to compress only text files and PNG images. The system compresses the entire folder if you do not specify any file type. You can also specify the name of a file to compress a specific file.

    • Regex: Select the regular expression (regex) either as a String or Pattern for each reguar expression condition and enter the value.

      For example, you can use regular expressions either as a String and enter the value as My_ for all file name starting with My_ or as a Pattern such as [a-z]{3}(.txt|xlxs) to retrieve files that matches this pattern.

  4. In the Specify destination filename and location field, specify the zip file name and location.
  5. Select the Update only if newer check box to compress the files only if one or more files were updated after the last compression.
    This option is useful when you are repeatedly compressing the same set of files and storing the output zip file with the same name at the same location. For example, you compress five PDF files from the Reports folder on a monthly basis and save the output zip file with the Monthly Report name in the D: drive. When this option is selected, the system compresses the files only if one or more PDF files are updated after the last compression.
  6. Select the Delete original files check box if you want to delete the original files after they are included in the zip file.
  7. In the Compression list, select between Normal, Fast, and Superfast to specify the speed for compression.
  8. Optional: In the Password protection field, click one of the following tabs to set a password:
    • Credential: To specify a stored password.
    • Variable: To set a variable for password.
    • String: To enter a password manually.
  9. Click Save.