此文件何時被訪問過

代碼:

<!DOCTYPE html>

<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>

結果:

The file testread.txt was last accessed on: 5/14/2012 9:46:44 AM

相關文章
亚洲国产精品第一区二区,久久免费视频77,99V久久综合狠狠综合久久,国产免费久久九九免费视频