August 1999
Intermediate to advanced
1488 pages
72h 53m
English
file.DateCreated
The DateCreated property is used to get the date in which the file was created.
Listing 9.52 shows how to use to DateCreated property.
<html> <BODY> <script language="JScript"> <!-- Hide // function gets the date of when the file "mytest.txt" was // created. function get() { var myObject, f, date; // Create an instance of the FileSystemObject myObject = new ActiveXObject("Scripting.FileSystemObject"); f = myObject.GetFile("c:\\mytest.txt"); // determine the date when the file was created. date = f.DateCreated; alert ("The date this file was created is: " + date); } //--> </script> Get the date that mytest.txt was created. <form ... |
Read now
Unlock full access