PetertheImp
Technical User
FileSystmeObject current file name.
I want to dynamically put a last modified date on the bottom of every page of my website, Using the FileSystmeObject I can put the last modified date on the page But I have to specify in the MapPath the page for which the date is taken from, I have a lot of pages and don't want to have to open every single one, Is there a way of specifiy the current file name i.e. default.asp so that I can do a global find and replace and put this on every page.
This is what I am using already
<%
Set fs = Server.CreateObject("Scripting.FileSystemObject"
Set rs = fs.GetFile(Server.MapPath("default.asp"
)
modified = rs.DateLastModified
%>
Any idea's anything,
Thanks in Advance
I want to dynamically put a last modified date on the bottom of every page of my website, Using the FileSystmeObject I can put the last modified date on the page But I have to specify in the MapPath the page for which the date is taken from, I have a lot of pages and don't want to have to open every single one, Is there a way of specifiy the current file name i.e. default.asp so that I can do a global find and replace and put this on every page.
This is what I am using already
<%
Set fs = Server.CreateObject("Scripting.FileSystemObject"
Set rs = fs.GetFile(Server.MapPath("default.asp"
modified = rs.DateLastModified
%>
Any idea's anything,
Thanks in Advance