Displaying Source Code(s)
|
|
When was the file created?
--------------------------------------------------------------------------------
Description : This example demonstrates how to first create a
FileSystem Object, and then use the DateCreated property of the
File Object to get the date and time a specified file was
created.
<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>
|
|
|