Folder.Copy() : Folder : MS JScript JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » MS JScript » Folder »

 

Folder.Copy()










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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» Folder