August 1999
Intermediate to advanced
1488 pages
72h 53m
English
folder.Move(destination)
The Move() method is used to move a specified folder from one location to another. The destination specified is the location to which to move the folder.
Listing 9.105 creates an instance of the Folder object, and then moves it by using the Move() method.
// Create a FileSystemObject
var myObject = new ActiveXObject("Scripting.FileSystemObject");
// Create a Folder object
var myFolder = myObject.GetFolder("c:\\Temp");
// Move the folder to another location.
myFolder.Move("c:\\Test");
|
Read now
Unlock full access