FileSystemObject.GetFolder()

JScript3.0+Syntax

							filesystemobject.GetFolder(/Path/)

Description

The GetFolder() method is used to get the specified folder object.

Example

Listing 9.88 shows how to retrieve a folder object. An instance of the FileSystemObject is created and then used to get a folder name. Then the DateLastAccessed property is applied to the folder object to get the actual date that the folder was last accessed. The result is then returned to the user.

Listing 9.88 Example of GetFolder()
<html>
<body>

<script language="JScript">
<!-- Hide // function gets the folder object and then checks the date // property of when the folder was last accessed. function getfolder() { var myObject, afolder, date; // Creates an instance of ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.