August 1999
Intermediate to advanced
1488 pages
72h 53m
English
filesystemobject.CopyFile(source, destination, overwrite)
The CopyFile() method is used to copy one or more files to a specified directory. This method takes three parameters. The first parameter, source, is a string specifying source path and filename from which to copy. The second parameter, destination, is a string specifying destination path a filename to which to copy. The final parameter, overwrite, is a Boolean value indicating whether to overwrite an existing file or not.
Listing 9.71 shows how to copy a file from one location to another.
<html> <body> <script language="JScript"> <!-- Hide function copy() { var myObject, newpath; ... |
Read now
Unlock full access