Asp > Code Snippets
This snippet shows how to display when a file was last accessed
This snippet shows how to display when a file was last accessed <% 'declare our variables Dim objFSO , myFile 'create instances of the objects Set objFSO = Server.CreateObject("Scripting.FileSystemObject") Set myFile = objFSO.GetFile(Server.MapPath("sample.txt")) 'display information Response.Write "The file was last accessed on " & myFile.DateLastAccessed 'delete our object variables Set objFSO = Nothing Set myFile = nothing %>
Asp Codes
ActiveX
ADO
Array
Code Snippets
Components
Data Access
Date Time
Files
Graphics
HTML Formatting
Mathematics
Miscellaneous
Sessions
SQL
Strings
Techniques
XML