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

server.mappath() for CF?

Status
Not open for further replies.

TruthInSatire

Programmer
Aug 12, 2002
2,964
US
I'm trying to set up a dynamic db connection but can't see it being very portable if i have to give the direct path to the db.
asp has a server.mappath function to give the the root directory then i add the rest of the path as needed to reach the db. is there anything like server.mapPath in CF or any easy way to get to the root?

Thanks.
 
what is the best way to get down to the so its easy to change the folder. the thing is we have all of our db's in one folder. we can be 12 folders deep and want to get to the root then specify the db folder.

not in relation to where I am but to relation to root.

so if my db's are in ... and i was in
i want to drop the me/my/mysite...

server.mappath returns the root, then add what you want

server.mappath("/databases/mydb.mdb") returns
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top