CopyFile()
Copies an existing file to a new file.
Syntax
CopyFile(<cFile>, <cNewFile>) --> None
Arguments
<cFile> --> The name of the file to copy.
<cNewFile> --> The name of the new file to create.
Returns
None.
Description
This function copies a file from one location on your computer or network to another. You should use the IsFile() function to verify the existence of the file you wish to copy before using the CopyFile() function.
The
Windows operating system does not permit you to copy open files. The CopyFile() function will fail if
a user is accessing the file you are attempting to copy.
Notes
No check is made to determine if this operation will overwrite an existing file. It should be used with caution.
The destination file name cannot be longer than 8 characters.
____________________________
Related Topics: