<html>
<body>

<%
dim fs, f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile(Server.MapPath("test.txt"))
Response.Write("<B>test.txt</B> was last accessed on: " & f.DateLastAccessed)
set f=nothing
set fs=nothing
%>

</body>
</html>
Published in: ASP
Download

Related snippets