Compress Files Action - Setting Properties

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.

To set Compress Files properties

  1. 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:

  1. 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

  2. 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.

  3. In the Compression type box, select the type of compression.

  4. 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.

  5. Click the Options tab, and select the check boxes according to the following guidelines:

    1. Include subfolders: includes subfolders. Select one of the following options:

      1. Do not store path: compresses the files from the subfolders, but does not include the subfolder themselves.

      2. 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.

      3. 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.

    1. Overwrite if exist: overwrites any matching files in the destination location. To overwrite only if the source files are newer, click Only if newer.

    2. 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.

    3. 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.

    4. Password protect files: protects the compressed files by requiring a password to extract them. Enter the password in the box below the check box.

  6. 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 (|).

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

  8. 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.

  9. To set the Description tab properties, please refer to Description Tab Options.

  10. To set the Error Causes and On Error tab properties, please refer to Step Error Handling.

  11. When finished, click OK to save settings.

See Also

About Actions

Adding Task Steps

Compress Files Action