Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NT to Windows 2003 Directory Problem...

Status
Not open for further replies.

Elliott3

Programmer
Sep 5, 2002
347
CA
Hi,
I have been in the ASP forum trying to figure this out but to no avail...

I have this html file and when you browse to it through the internet, it executes an asp file on the following line:
Code:
<!--#exec cgi="/cgi-bin/myPage.asp" -->

The above line is in a plain html file(note: the asp file is in a different directory than the html file)... while executing the myPage.asp file I need to find out the directory of the html file that it is embeded in...

I have tried many things but am all ears to any suggestions at all...

Note: The site is currently on an NT box and is being moved to Windows 2003... on the NT box, the statement:

Code:
Request.ServerVariables("SCRIPT_NAME")

will return the directory of the html file(which is what i want, but it will not on the new Windows 2003 box)?? that is why I thought it might be a server config setting??

Any ideas??

CES
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top