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


JAVASCRIPT TUTORIALS » MS JScript » FileSystemObject »

 

FileSystemObject.GetFolder()









Syntax








filesystemobject.GetFolder(/Path/)



The GetFolder() method gets the specified folder object.












<html>
    <body>
    <script language="JScript">
    <!--
    function getfolder()
    {
        var myObject, afolder, date;
        myObject = new ActiveXObject("Scripting.FileSystemObject");
        afolder = myObject.GetFolder("c:\tmp");
        date = afolder.DateLastAccessed;
        alert("The folder"+name+" is a temporary folder.");
    }
    -->
    </script>
    Get the date that the folder "tmp" was last accessed.
    <form name="myForm">
    <input type="Button" value="Get Folder Date" onClick='getfolder()'>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» FileSystemObject