To get the last modification time of the generated HTML file, write a function with simple judgment.
Instance:
2005-11-10 19:33:44 ASP file 6.83 KB
Save the following file as a mofei. asp file and run it. You need FSO support.
<%
Function fsofiledatemofei (sfile)
'Get the file time, type, size through FSO; sfile is the file name
'Production: mofei
'Qq: 33224360
'Home: http://www.8vb.cn
Sfilere = ""
Set FSO = server. Createobject ("scripting. FileSystemObject ")
If sfile = "" Or isnull (sfile) Then sfile = request. servervariables ("script_name ")
If not FSO. fileexists (server. mappath (sfile) Then sfile = request. servervariables ("script_name ")
Sfile = server. mappath (sfile)
Set fsofile = FSO. GetFile (sfile)
Sfilere = sfilere & fsofile. datelastmodified 'file time
Sfilere = sfilere & CHR (9) & "<font color = green>" & fsofile. Type & "</font>" 'type
Sfilere = sfilere & CHR (9) & round (fsofile. Size * 1000/1024/) & "kb" 'size
Set FSO = nothing
Fsofiledatemofei = sfilere
End Function
Response. Write fsofiledatemofei ("index. asp ")
%>
Obviously, modify "index. asp" and change it to the file you need. You can check that there are comments. Modify them by yourself.