August 1999
Intermediate to advanced
1488 pages
72h 53m
English
filesystemobject.CopyFolder(source, destination, overwrite)
The CopyFolder() method copies a folder from a source to a destination. 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.72 shows how to use the CopyFolder() method. A new FileSystemObject is created, providing access to the computer's file system. It is then used to copy all the contents of the folder tmp to ...
Read now
Unlock full access