FolderItem.CopyFileTo Method
If Item is a folder, then the FolderItem is copied into Item. If Item is a file and the file already exists, the copy is aborted.
Syntax
FolderItem.CopyFileTo Item
Parameters | |
Item |
You need to delete the existing file first. If there is an error, the LastErrorCode property contains an error code.