The Compress Files action is used to compress one or more files. There are six compression types and five levels of compression to choose from.
From the Task Builder Available Actions pane, open the Compression folder and double-click the Compress Files action or drag it into the Steps pane. The following dialog appears:
In the Files to Compress box, click the Open Folder button and navigate to the files to compress. Use SHIFT+click to select groups of files, or CTRL+click to select multiple individual files. Alternately, you can type in the path and file names. You can use asterisk (*) and question mark (?) as wildcard characters. For example, use *.DOC to include all files in the selected folder with a .DOC extension, or *.* to include all files. Separate multiple entries with a pipe symbol (|). Example: C:\SourceFolder\*.doc|SourceFile1.txt
In the Destination box, click the Open Folder button , navigate to the folder, and type in the file name. Alternately you can type the destination path and file name into the box. Any nonexistent folders designated are created at run time.
In the Compression type box, select the type of compression.
If Level of compression is active for the compression type you selected, click to select the level of compression. The higher the level of compression, the smaller the file size will be, and the longer the action will take. If you select no compression (fastest), the files are saved as the compression type, but are not compressed.
Click the Options tab, and select the check boxes according to the following guidelines:
Include subfolders: includes subfolders. Select one of the following options:
Do not store path: compresses the files from the subfolders, but does not include the subfolder themselves.
Store relative path: preserves folder information beneath the current folder only. For example If you are compressing C:\documents\folder\*.*, the path of \folder\ will be stored in the file.
Store absolute path: stores the full path. For example, if compressing C:\documents\folder\*.*, the full path of \documents\folder\ will be stored in the file.
Overwrite if exist: overwrites any matching files in the destination location. To overwrite only if the source files are newer, click Only if newer.
Turn archive attribute off: turns off the archive attribute for the source files. To many backup programs, this indicates the files have already been backed up.
Store files in DOS 8.3 format: truncates file names of compressed files to 8.3 DOS style equivalents. This should only be used if the compressed files will be used on an older operating system that does not support long file names.
Password protect files: protects the compressed files by requiring a password to extract them. Enter the password in the box below the check box.
In the Exclude mask box, enter the names of any files or folders within the selected source folder that you want to exclude from the action. You can use asterisk (*) and question mark (?) as wildcard characters. Separate multiple entries with a pipe symbol (|).
To exclude files from the action based on date, select the Only if newer than or Only if older than check boxes. Then use the date and time boxes to select the desired date and time. You can also click the Custom button and select a limiter such as Last 24 hours, or you can select Expression and enter an expression.
To limit the action according to file attributes, click the Attributes tab and then select On or Off for any attributes that you want used as criteria in the file selection. The default is Doesn't matter, which means the attribute will be ignored. The attributes to select from are: Read-only, Archive, System, Hidden, and Compression.
To set the Description tab properties, please refer to Description Tab Options.
To set the Error Causes and On Error tab properties, please refer to Step Error Handling.
When finished, click OK to save settings.
Adding Task Steps
Compress Files Action