Skip to main content

Copy File

Copies a file from its current location to a new one.

Category: File & Folder Operations · Group: Files · Activity name: FileCopy

The FileCopy activity in the designer

Example​

outputVariable = FileCopy("<document>", "<location>", delete=True, overwrite=True)

Inputs​

NameTypeRequiredDefaultDescription
File PathstringYesPath of the file to be copied.
Copy LocationstringYesPath to the location where the file should be copied.
Remove original filebooleanCheck this box if you want to delete the original file.
Overwrite files in the destination pathbooleanCheck this box if you want to overwrite existing files in the destination location.

Outputs​

NameTypeDescription
outputVariablestringSpecifies the name of the variable that will store the new file location.