源代码:
<% 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 %>
运行结果:
<% 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 %>