tumblr tracker

Copy

Library Reference ›› File ››
Parent Previous Next

File.Copy


Namespace: File


Copies a file from one location to another.


retval = File.Copy(SourceFilePath, DestFilePath)


Parameters:

- SourceFilePath; string constant or variable containing the file path of the source file

- DestFilePath; string constant or variable containing the file path of the destination file


Returns:

True if successful, otherwise false; boolean value.


Example


File.Copy("C:\TEMP\somefile.txt", "C:\TEMP\somefile2.txt")