Displaying Source Code(s)
|
|
--------------------------------------------------------------------------------
When was the file last accessed?
--------------------------------------------------------------------------------
Description : This example demonstrates how to use the
DateLastAccessed property to get the date and time a specified
file was last accessed.
<html>
<body>
<%
Dim fs, f
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Set f=fs.GetFile(Server.MapPath("testread.txt"))
Response.Write("The file testread.txt was last accessed on: " &
f.DateLastAccessed)
Set f=Nothing
Set fs=Nothing
%>
</body>
</html>
|
|
|