Zip action
- Updated: 2023/02/08
Zip action
The Zip action enables you to compress files and folders into a .zip format.
Procedure
- In the Actions palette, double-click or drag the Zip action from the Folder package.
- In the Specify file(s)/folder(s) to compress field, specify the location.
-
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.
-
String: Specify the file extension.
- In the Specify destination filename and location field, specify the zip file name and location.
-
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.
- Select the Delete original files check box if you want to delete the original files after they are included in the zip file.
- In the Compression list, select between Normal, Fast, and Superfast to specify the speed for compression.
- 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.
- Click Save.