Activities
latest
false
Banner background image
Workflow Activities
Last updated Apr 22, 2024

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 Name (includes 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 next to the field and then browse to and select the file for which to retrieve information. Alternatively, you can click Plus 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 Name (includes 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 docs image 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 docs image 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

  • Configuring the Activity

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.