Quote:
quote:Originally posted by orbbital
You can retrive the relative and absolute path of an asp page, at any point in your code, from the server variables.
'this returns the relative path
strRelativePath = Request.ServerVariables("PATH_INFO")
'You can then map this into the physical path
strPhysicalPath = Server.MapPath(strRelativePath)
From there you can manipulate the path info for use with the FileSystemObject.
Hope this helps.
|
<%
strRelativePath =Request.ServerVariables("PATH_INFO")returns
-/webeis/sms.asp
strPhysicalPath = Server.MapPath(strRelativePath)returns -
D:\iffcoindia\webeis\sms.asp
code useed-
error message-
Active Server Pages error 'ASP 0126'
Include file not found
/webeis/sms.asp, line 17
The include file 'd:\iffcoindia\function_webeis.asp' was not found.
om prakash kumar