Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Last Modified property of File object

Status
Not open for further replies.

AgentM

MIS
Jun 6, 2001
387
US
can somebody tell me how to get the LastModified property of a file.
Thank you
Rosh
 
Here is how Dianal showed me:

<%
'Get the date last modified
Set fso = Server.CreateObject(&quot;Scripting.FileSystemObject&quot;)
Set f = fso.GetFile(&quot;c:\Inetpub\ModDate = f.DateLastModified

Response.Write ModDate

'Clean up
ModDate = &quot;&quot;
Set f = Nothing
Set fso = Nothing
%>

Except that I use --> Server.Variables(&quot;Path_Translated&quot;)
in lieu of the written path in fso.GetFile.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top