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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically generate root dirctory's path 1

Status
Not open for further replies.

oricteropo

IS-IT--Management
Mar 7, 2003
29
US
Is there anyway that I can dynamically generate the path to the root directory of my webpage using ASP?
 
Not sure what you mean exactly

tempPath=request.servervariables("APPL_PHYSICAL_PATH")
will give you something like this
c:\inetpub\or whatever the actual path is to your root directory

Heres a little routine that will give you all the variables that you can access
<%
for each x in request.servervariables
response.write x & &quot; &quot;& request.servervariables(x) & &quot;<BR>&quot;
next
%>



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top