FileCopy
This method copies an existing file to a new file.
Syntax
filesystem.FileCopy PathName, NewPathName
Parameters
- filesystem
- Reference to a FileSystem object.
- PathName
- String that contains the path and file name.
- NewPathName
- String that contains the file name and path of the new file.
Return Value
None.
Remarks
FileCopy returns an error if the new file does not exist.