Hi
I'd like to get the current document name (asp file) in vbscript/asp and send that name to the following called function which is in another included file.
All I need to know is the getFile command that will tell me the file name (the "nameOfFile" argument in the function)
sub lastModified(nameOfFile)
dim fs, f
set fs=Server.CreateObject("Scripting.FileSystemObject"
set f=fs.GetFile(Server.MapPath(nameOfFile))
Response.Write("<!-- Last modified in: " & f.DateLastModified & " -->"
set f=nothing
set fs=nothing
end sub
Thanks much
I'd like to get the current document name (asp file) in vbscript/asp and send that name to the following called function which is in another included file.
All I need to know is the getFile command that will tell me the file name (the "nameOfFile" argument in the function)
sub lastModified(nameOfFile)
dim fs, f
set fs=Server.CreateObject("Scripting.FileSystemObject"
set f=fs.GetFile(Server.MapPath(nameOfFile))
Response.Write("<!-- Last modified in: " & f.DateLastModified & " -->"
set f=nothing
set fs=nothing
end sub
Thanks much