server.mappath method - please help

S

sean

Hi There,

I need to map a path to my database file automatically, if I move the
application to a different direcotry level I still have to write part of the
path to get the application to work.

Is there anyway I can translate the directory path and place inside the
mappath function so I dont have to manually edit it?

Sean


cst = "Driver={Microsoft Access Driver (*.mdb)};DBQ=" &
server.mappath("\shopsmartnetwork\cart\cart.mdb")
 
A

Atrax

errr. I'm not clear here. either you've explained what you want very
badly, or you're having trouble with soemthing you really shouldn't be.
can you be more clear?
Is there anyway I can translate the directory path and place inside the
mappath function so I dont have to manually edit it?

see, this is the bit I don't get. you want to do what?




________________________________________
Atrax. MVP, IIS
http://rtfm.atrax.co.uk/

newsflash : Atrax.Richedit 1.0 now released.
http://rtfm.atrax.co.uk/infinitemonkeys/components/Atrax.RichEdit/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top