文件何时被创建

代码:

<!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 created on: " & f.DateCreated)

set f=nothing

set fs=nothing

%>

 

</body>

</html>

结果:

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

相关文章