August 1999
Intermediate to advanced
1488 pages
72h 53m
English
filesystemobject.MoveFolder(/arguments/)
The MoveFolder() method is used to move one or more folders from one location to another.
Listing 9.93 shows how the NewFolder() method is used. An instance of the FileSystemObject is created and then used to move the subtmp folder to the root directory on the C drive.
<html>
<body>
<script language="JScript">
<!-- Hide
function move()
{
var myObject;
// Create an instance of the FileSystemObject
myObject = new ActiveXObject("Scripting.FileSystemObject");
// Folder is moved
myObject.MoveFolder("c:\\tmp\\subtmp", "c:\\");
} // End Hide --> </script> Move the folder "subtmp" from c:\tmp\subtmp ... |
Read now
Unlock full access