Woops, I pressed the SEND button to early....sorry for the repeat message.

Hi,
I'm using the following code on my intranet site to let users know when a
page was last modifed.  I have about 116 files on my intranet site and want
to make the code below an include file, but I don't know if there is code
that I can use in place of the file name (index.asp),
Set objFile = objFSO.GetFile(Server.MapPath("index.asp"))...so that I don't
have to go into each of the 116 files and manually type the filename.  Does
anyone know how to handle this?

I was using a javascript modified date code on my asp pages, but it updates
the date everytime a browser is refreshed.  I want it to show the date that
the file was actually last modifed.

thanks in advance.



<%
Dim objFSO
Dim objFile
Dim dateModified

 ' Creates the object and assigns it to our variable.
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")

' Get access to the file
Set objFile = objFSO.GetFile(Server.MapPath("index.asp"))

 ' Get last modified property
dateModified = objFile.DateLastModified

' You can format it as you like using the FormatDateTime command
%>

Date Last Modified: <%= dateModified %><BR>
<%
' Kill our objects
Set objFile = Nothing
Set objFSO = Nothing
%>

Sherri D. Messiner
Seagate Technology


____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to