August 1999
Intermediate to advanced
1488 pages
72h 53m
English
file.DateLastAccessed
The DateLastAccessed property is used to find out the last date that the file was accessed.
Listing 9.53 shows how the DateLastAccessed property is used.
<html> <BODY> <script language="JScript"> <!-- Hide // function determines the date of when the file was // last accessed. function get() { var myObject, f, date; // Create an instance of the FileSystemObject myObject = new ActiveXObject("Scripting.FileSystemObject"); f = myObject.GetFile("c:\\mytest.txt"); date = f.DateLastAccessed; // inform the user of the date when the file was last accessed. alert ("The date this file was last accessed is: " + date); } //--> ... |
Read now
Unlock full access