Displaying Source Code(s)
|
|
When was a file last modified?
--------------------------------------------------------------------------------
Description : Checks when this file was last modified.
<html>
<body>
<%
Set fs = Server.CreateObject("Scripting.FileSystemObject")
Set rs = fs.GetFile(Server.MapPath("demo_lastmodified.asp"))
modified = rs.DateLastModified
%>
This file was last modified On: <%response.write(modified)
Set rs = Nothing
Set fs = Nothing
%>
</body>
</html>
|
|
|