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

Workflow Activities

Last updated Mar 25, 2025

CopyFile

Copies a file from a specified location to another.

Definition

Namespace: UiPath.Activities.System.API

Assembly: UiPath.System.Activities.Api (in UiPath.System.Activities.Api.dll)

CopyFile(String, String, Bool)

 [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]void CopyFile(
	string path,
	string destination,
	bool overwrite
)
path String
The path of the file to be copied.
destination String
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 Boolean
When checked, overwrites the files in the destination folder with the file that is to be copied.

Was this page helpful?

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