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

AccessPath

Status
Not open for further replies.

skoal

Technical User
Joined
Mar 4, 2002
Messages
4
Location
US
I'm trying to setup the access path to my database file. I remember at one time there was an asp code to trace the true path on the server i.e. d:\websites\mydomin\mydatabase
All I had to do was place the code in a page and it pulled up the access path.
And yes, I had it written down at one time.
Please help me!
 
Server.MapPath(<filename, and if you like some path>); codestorm
 
To make more clear:

<%= server.mappath(&quot;myDatabase.mdb&quot;)%>


or

<%= server.mappath(&quot;/myfiles/db/myDatabase.mdb&quot;)%>


whereever the file you want to trace to, is in your directory tree in relation to where the .asp page is running this script.

Hope that helps.
-Ovatvvon
 
Thanks codestorm and ovatvvon for the great help.
Got up and running thanks to you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top