Skip to main content

Copy File

Command description

Copy the specified file into the destination folder and return the absolute path of the copied file.

Command Input Parameters

input parametersInput parameter typeDescription
Source FilestrFull path of the file to copy, such as C:\xx
Destination FolderstrFor example C:\abc
Conflict HandlingenumOverwrite, Do Not Copy, Add Suffix Automatically; determines how to handle a name conflict in the destination folder

Command Output Parameters

Output parametersOutput parameter typeDescription
PathstrThe full path of the copied file, such as C:\abc\xx

Edge Cases

  • The command reports an error if the source file does not exist. Use "Copy Folder" when the source is a folder.
  • The destination folder is created automatically if it does not exist. The command reports an error if the destination path is an existing file.
  • If the destination already contains a path with the same name, Overwrite replaces it, Do Not Copy leaves it unchanged and returns its path, and Add Suffix Automatically creates a new path with a timestamp suffix.