activities
latest
false
UiPath logo, featuring letters U and I in white

Workflow Activities

Last updated Dec 20, 2024

Copy File

UiPath.Core.Activities.CopyFile

Description

Copies a file from a specified location to another.

Project compatibility

Windows - Legacy | Windows | Cross-platform

Cross-platform configuration

  • From - The path of the file to be copied.
  • To - The destination path where to copy the file. If you provide a file path, the file is copied with the name in the provided path. If you provide a folder path, the file is copied with the original name.
  • Overwrite - When selected, overwrites the files in the destination folder with the file that is to be copied.
Advanced options

Options

  • Continue on error - 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 not configured 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.

Windows - Legacy, Windows configuration

Properties panel
Common
  • Continue on error - 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 not configured 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.
  • DisplayName - The display name of the activity.

    Note: If this activity is included in Try Catch and the value of the Continue On Error property is True, no error is caught when the project is executed.

From

  • From - The path of the file to be copied.
Misc
  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.

Options

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

To

  • To - The destination path where to copy the file. If you provide a file path, the file is copied with the name in the provided path. If you provide a folder path, the file is copied with the original name.

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.