UiPath Activities

The UiPath Activities Guide

Get File Info

UiPath.Core.Activities.GetFileInfoX

Retrieves the properties of a specified file and saves the information for later use in the project. When you then use the saved information in another activity, you select one of the file properties as input: Size (in bytes), Name (file name including extension), Full Path, Folder (full path to the folder containing the file), Last modified date, Last accessed date, Created date (dates including time), IsReadOnly (TRUE or FALSE), Size in KB.

Configuring the Activity

In the Body of the Activity

  • File path - Click Browse browse files next to the field and then browse to and select the file for which to retrieve information. Alternatively, you can click Plus plus button on the right side of the field and then, from the menu, choose one of the available options to indicate the path of the file:
    • If the activity is inside a For Each File in Folder activity, you can select CurrentFile > Full Path to indicate the path of the file you are currently iterating through.
  • 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.
    • 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. To add dynamic paths, you can combine text with Excel formulas selected using the Plus plus button menu in the Text Builder. For example, for a file downloaded daily that includes the current date in the name, you can add the date to the file name using a formula in the default Project Notebook.
    • Ask when run - Prompt for a file path when the project is executed.
    • Open in Advanced Editor - Enter a VB expression.
  • Output to - Click Plus plus button on the right side of the field and then, from the menu, select Save for Later Use to use the output result later in your project as input for another activity. Alternatively, you can select Open in Advanced Editor and enter a VB expression.

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.

Output

Updated 25 days ago


Get File Info


Suggested Edits are limited on API Reference Pages

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