August 1999
Intermediate to advanced
1488 pages
72h 53m
English
folder.Copy(destination) folder.Copy(destination, boolean)
The Copy() method is used to copy a specified folder from one location to another. The destination specified is the location to which to copy the folder. If the boolean parameter is set to true, and if there is an existing folder in the destination location, the copy will overwrite the folder.
Listing 9.97 creates an instance of the Folder object, and then makes a copy using the Copy() method. If the new folder already exists, it will be overwritten.
// Create a FileSystemObject var myObject = new ActiveXObject("Scripting.FileSystemObject"); // Create a Folder object var myFolder = myObject.GetFolder("c:\Temp"); ... |
Read now
Unlock full access