Subscribe

UiPath Activities

The UiPath Activities Guide

Extract/Unzip Files

UiPath.System.Activities.Compression.Workflow.ExtractFiles

Extracts all the contents of a zip file archive to a specified folder.

Configuring the Activity

In the Body of the Activity

  • File to extract - Click Browse browse filesbrowse files next to the field and then browse to and select the archive file to extract. Alternatively, you can click Plus plus buttonplus button on the right side of the field, and then use one of the available options in the menu to indicate the path to the file:
    • Data from the Project Notebook, a parent Excel file or Outlook account. For example, select an Excel file and then select a cell that contains a file path, or indicate a field from a selected email in Outlook that contains a file path.
    • Use Saved Value - Select a value in the form of a file path that you previously saved for later use in the project.
    • Text - Enter a file path in the Text Builder.
    • Ask when run - Prompt for a file path when the project is executed.
    • Paste from clipboard - Paste a value in the form of a file path that you previously copied to the clipboard in the project.
    • Open in Advanced Editor - Enter a VB expression.
  • Destination folder - Click Browse browse filesbrowse files next to the field and then browse to and select the folder where to extract the contents of the archive. Alternatively, you can click Plus plus buttonplus button on the right side of the field, and then use one of the available options in the menu to indicate the path to the folder:
    • Data from the Project Notebook, a parent Excel file or Outlook account. For example, select an Excel file and then select a cell that contains a folder path, or indicate a field from a selected email in Outlook that contains a folder path.
    • Use Saved Value - Select a value in the form of a folder path that you previously saved for later use in the project.
    • Text - Enter a folder path in the Text Builder.
    • Ask when run - Prompt for a folder path when the project is executed.
    • Paste from clipboard - Paste a value in the form of a folder path that you previously copied to the clipboard in the project.
    • Open in Advanced Editor - Enter a VB expression.
  • Extract to dedicated folder - If selected, the contents of the zip file are extracted to a folder with the zip file name that is created in the destination folder. If not selected, the contents are extracted directly to the destination folder. This option is selected by default.
  • Extracted contents folder - Optionally, you can save the properties of the folder where the zip file is extracted for later use in the project. For example, this enables you to use the full path of the folder where the archive is extracted later in the automation. 

In the Properties Panel

Common

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

Input

Misc

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

Options

  • Name encoding - Select the encoding for the file names. The System default encoding is selected by default.
  • Password - If the file is password protected, specify the required password.
  • Skip unsupported files - If selected, all supported files are extracted and files that are not supported are skipped. If not selected, an error occurs when an unsupported file cannot be extracted. Files compressed using the following methods cannot be extracted: Deflate64, PPMd, and XZ.

Output

Updated 29 days ago


Extract/Unzip Files


Suggested Edits are limited on API Reference Pages

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