ozpo1
03-13-2006, 09:22 PM
This is the code I'm using it's for AIM method:
<%
' Begin code to get the last modified date of the current document
' Get the location of the root directory for the server
file_info = request.servervariables("appl_physical_path")
' Get the location of the current file on the server
file_info = file_info + right(request.servervariables("script_name"),(len(request.servervariables("script_name"))-1))
' create a file scripting object on the server
set fso = createobject("scripting.filesystemobject")
' Assign a variable to contain the document date last modified
document_date=fso.getfile(file_info).datelastmodified
response.write "This code was last updated: "
This is the error I receive:
Microsoft VBScript runtime error '800a0035'
File not found
/getcontr/aim.asp, line 501
Line 501 is bold.
Can someone help me understand what's wrong with it, and how to fix it? Thanks in advanced,Oz.
<%
' Begin code to get the last modified date of the current document
' Get the location of the root directory for the server
file_info = request.servervariables("appl_physical_path")
' Get the location of the current file on the server
file_info = file_info + right(request.servervariables("script_name"),(len(request.servervariables("script_name"))-1))
' create a file scripting object on the server
set fso = createobject("scripting.filesystemobject")
' Assign a variable to contain the document date last modified
document_date=fso.getfile(file_info).datelastmodified
response.write "This code was last updated: "
This is the error I receive:
Microsoft VBScript runtime error '800a0035'
File not found
/getcontr/aim.asp, line 501
Line 501 is bold.
Can someone help me understand what's wrong with it, and how to fix it? Thanks in advanced,Oz.