Jul 21, 2001 #1 AgentM MIS Jun 6, 2001 387 US can somebody tell me how to get the LastModified property of a file. Thank you Rosh
Jul 21, 2001 #2 Gamera99 Programmer May 17, 2001 59 JP Here is how Dianal showed me: <% 'Get the date last modified Set fso = Server.CreateObject("Scripting.FileSystemObject" Set f = fso.GetFile("c:\Inetpub\http://wwwroot\Project3\form.asp")ModDate = f.DateLastModified Response.Write ModDate 'Clean up ModDate = "" Set f = Nothing Set fso = Nothing %> Except that I use --> Server.Variables("Path_Translated" in lieu of the written path in fso.GetFile. Upvote 0 Downvote
Here is how Dianal showed me: <% 'Get the date last modified Set fso = Server.CreateObject("Scripting.FileSystemObject" Set f = fso.GetFile("c:\Inetpub\http://wwwroot\Project3\form.asp")ModDate = f.DateLastModified Response.Write ModDate 'Clean up ModDate = "" Set f = Nothing Set fso = Nothing %> Except that I use --> Server.Variables("Path_Translated" in lieu of the written path in fso.GetFile.