FileSystemObject.MoveFolder() : FileSystemObject : MS JScript JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » MS JScript » FileSystemObject »

 

FileSystemObject.MoveFolder()









Syntax








filesystemobject.MoveFolder(/arguments/)



The MoveFolder() method moves one or more folders from one location to another.












<html>
    <body>
    <script language="JScript">
    <!--
    function move()
    {
        var myObject;
        myObject = new ActiveXObject("Scripting.FileSystemObject");
        myObject.MoveFolder("c:\tmp\subtmp""c:\");
    }
    -->
    </script>
    Move the folder "subtmp" from c:tmpsubtmp to c:
    <form name="myForm">
    <input type="Button" value="Move folder" onClick='move()'>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» FileSystemObject