FileSystem.Copy Method



Copies the specified file or directory sourcePath to file or directory destinationPath. When copying a directory, all files and subfolders will be copied recursively.


If sourcePath does not exist, an error will be reported. If sourcePath and destinationPath are the same files, an error will be reported. If either sourcePath or destinationPath is not a regular file or directory, an error will be reported. If sourcePath is a directory, but destinationPath is a regular file, an error will be reported. An error will be reported if the copy operation is unsuccessful.


Timing Precision Mode

This page describes functionality in millisecond timing precision mode.


Overload List


FileSystem.Copy(String, String)

FileSystem.Copy(String, String, Variable)

FileSystem.Copy(String, String, Variable, Variable)


See also

FileSystem Object

Interfacing with Files Guide