programming-examples/asp/More_Code_Snippets/This shows the date a file was created.asp

8 lines
257 B
Plaintext
Raw Normal View History

2019-11-18 14:25:58 +01:00
<%
Dim objFSO , myFile
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set myFile = objFSO.GetFile(Server.MapPath("sample.txt"))
Response.Write "File created on " & myFile.DateCreated
Set myFile = Nothing
Set objFSO = Nothing
%>