Subscribe

UiPath StudioX

The UiPath StudioX Guide

Copy File

UiPath.Core.Activities.CopyFile

Copies a specified file to another location. Optionally, you can choose to replace any file with the same name that already exists in the destination location.

In the Body of the Activity

  • From - Click browse files next to the field and then browse to and select the file to copy. Alternatively, you can click 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 to copy:
    • If the activity is inside a For Each File in Folder activity, you can select Current File > Full Path to indicate the path of the file you are currently iterating through.
    • Data from an application added to a card. 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.
    • Open in Advanced Editor - Enter a VB expression.
  • To - Click browse files next to the field and then browse to and select where to copy the file. Alternatively, you can click 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 copy the file:
    • Data from an application added to a card. 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 Excel Workspace.
    • 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.

Properties

Common

  • 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.
  • Display Name - The name displayed for the activity in the Designer panel.

From

Misc

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

Options

To

Updated 2 years ago


Copy File


Suggested Edits are limited on API Reference Pages

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