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


JAVASCRIPT TUTORIALS » MS JScript » Folder »

 

Folder.Delete()










Syntax








folder.Delete(boolean)
    folder.Delete()



The Delete() method deletes a specified folder.

The optional boolean parameter cause the method to delete all read-only files and folders in the folder if set to true.












<html>
    <body>
    <script language="JScript">
    <!--

    var myObject = new ActiveXObject("Scripting.FileSystemObject");
    var myFolder = myObject.GetFolder("c:Test");

    myFolder.Delete();
    // End hide-->
    </script>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» Folder