Skip to main content

Copy Folder

Command description​

Copy the specified folder and all its contents into the destination folder, then return the full path of the copied folder.

Command Input Parameters​

input parametersInput parameter typeDescription
Source FilestrFull path of the folder to copy, for example 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 folder, such as C:\abc\xx

Edge Cases​

  • The command reports an error if the source folder does not exist. Use "Copy File" when the source is a file.
  • 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.