Syntax
filesystemobject.CopyFolder(source, destination, overwrite)
The CopyFolder() method copies a folder from a source to a destination.
source specifies source path and filename.
destination specifies destination path a filename.
overwrite is a Boolean value indicating whether to overwrite an existing file or not.
<html>
<body>
<script language="JScript">
<!--
function copy()
{
var myObject;
myObject = new ActiveXObject("Scripting.FileSystemObject");
myObject.CopyFolder ("c:\\tmp\\*", "c:\\newtmp\\");
}
-->
</script>
Copy Folder "c:\tmp" to the folder "c:\newtmp"
<form name="myForm">
<input type="Button" value="Copy Folder" onClick='copy()'>
</form>
</body>
</html>