Syntax
folder.Copy(destination) folder.Copy(destination, boolean)
The Copy() method copies a specified 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.
<html> <body> <script language="JScript1.2"> <!-- var myObject = new ActiveXObject("Scripting.FileSystemObject"); var myFolder = myObject.GetFolder("c:\Temp"); myFolder.Copy("c:\\Test", true); --> </script> </html>