UiPath Activities

The UiPath Activities Guide

Move File

UiPath.Core.Activities.MoveFile

Description

Moves a file from a specified location to another.

Properties

From

  • Path - The path of the file to be moved.

To

  • Destination - The destination path where the file is to be moved.

Options

  • Overwrite - When checked, overwrites the files in the destination folder with the file that is to be copied.

Common

  • DisplayName - The display name of the activity.
  • ContinueOnError - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.

Note:

If this activity is included in Try Catch and the value of the ContinueOnError property is True, no error is caught when the project is executed.

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.

UiPath.Core.Activities.MoveFile

Description

Moves a file from a specified folder to another. You can also use this activity to rename a file by entering a file path with a different file name than the source file as the destination in the To field.

To learn how to use this activity, see:

Configuring the Activity

In the Body of the Activity

  • From - Click Browse browse files next to the field and then browse to and select the file to move. 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 you want to move:
    • 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, 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. You can combine text with a formula from an Excel file cell, for example to add a date to the file name using formulas in the Project Notebook.
    • Ask when run - Prompt for a file path when the project is executed.
    • Open in Advanced Editor - Enter a VB expression.
  • To - Click Browse browse files next to the field and then browse to and select the folder where to move the file. 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 location where to move 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 path, or indicate a field from a selected email in Outlook that contains a path.
    • Use Saved Value - Select a value in the form of a path that you previously saved for later use in the project.
    • Text - Enter a path in the Text Builder. You can combine text with a formula from an Excel file cell, for example to add a date to the file name using formulas in the Project Notebook.
    • Ask when run - Prompt for a file path when the project is executed.
    • Open in Advanced Editor - Enter a VB expression.
  • Overwrite - If selected, any file with the same name as the source file that already exists in the destination location is replaced when the automation is executed.

In the Properties Panel

Common

  • DisplayName - The display name of the activity.
  • ContinueOnError - If selected, specifies that the automation should continue even when the activity throws an error. If not selected, the execution of the project stops when an error is encountered.

From

  • Path - The path of the file to be moved.

Misc

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

Options

  • Overwrite - When checked, overwrites the file in the destination folder with the file that is to be copied.

To

  • Destination - The destination path where the file is to be moved.

Updated 3 months ago


Move File


Suggested Edits are limited on API Reference Pages

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