programming-examples/asp/More_Code_Snippets/This example shows when a file was last modified.asp

12 lines
409 B
Plaintext
Raw Normal View History

2019-11-18 14:25:58 +01:00
<%
'variables for our objects
Dim objFSO , myFile
'create instances of our objects
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set myFile = objFSO.GetFile(Server.MapPath("sample.txt"))
'display information about file
Response.Write "The file was last modified on " & myFile.DateLastModified
'set object variables to Nothing
Set myFile = Nothing
Set objFSO = Nothing
%>