Subscribe

UiPath Activities

The UiPath Activities Guide

Compress/Zip Files

UiPath.Activities.System.Compression.Workflow.CompressFiles

Adds the specified files or folders to a compressed (zip) file archive.

In the Body of the Activity

  • Compressed file name - Name of the compressed file to create. Click Browse browse filesbrowse files next to the field, and then browse to select a compressed file to use.
    In StudioX, you can click Plus plus buttonplus button on the right side of the field, and then indicate the name using one of the options from the menu:
    • Data from the Project Notebook, a parent Excel file or email account. For example, select an Excel file and then select a cell that contains a name, or indicate a field from a selected email in Outlook that contains a file path.
    • Ask when run - Prompt for the name when the project is executed.
    • Paste from clipboard - Paste a value that you previously copied to the clipboard in the project.
    • Text - Enter the name in the Text Builder.
    • Open in Advanced Editor - Enter a VB expression.
  • Content to zip - Use the radio buttons to select Files or Folder. Click Browse browse filesbrowse files next to the field, and then browse to select the files or folders to compress.
    In StudioX, you can click Plus plus buttonplus button on the right side of the field, and then indicate the path using one of the options from the menu
    • Data from the Project Notebook, a parent Excel file or email account. For example, select an Excel file and then select a cell that contains a name, or indicate a field from a selected email in Outlook that contains a file path.
    • Ask when run - Prompt for the name when the project is executed.
    • Paste from clipboard - Paste a value that you previously copied to the clipboard in the project.
    • Text - Enter the name in the Text Builder.
    • Open in Advanced Editor - Enter a VB expression.
  • Compressed file - Optionally, save a reference to the compressed file as a variable.
    In StudioX, click Plus plus buttonplus button on the right side of the field, and then select Save for Later Use.

In the Properties Panel

Common

  • DisplayName - The name displayed for the activity in the Designer panel.

Input

See in the body of the activity.

Misc

  • Private - If selected, the data used in the activity is not logged by Studio or StudioX.

Options

  • Compression level - How small to compress the file. The higher the compression level the slower it is to compress and decompress. You can use None, Fast, Normal, or Maximum.
  • Name encoding - Text encoding for file names. You can use System default or Unicode (UTF-8).
  • Overwrite existing file - Replace compressed file if it already exists. This option is enabled by default.
  • Password - (Optional) Require the specified password to open the file.

Output

See in the body of the activity.

Updated about a month ago


Compress/Zip Files


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.