directory tree..

Discussion in 'Getting started' started by 4Wheels, Aug 11, 2011.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi friends,

    I’m new here in the forum but have been programming for 30+ years. After being laid off I’ve been playing with web apps as a hobby for a few years. NOW I want to make some money online. I built a web site – – as a learning hobby after I was laid off and I’m putting it back up now to refresh my memory. It’s all database driven (Access), coded in ASP 3.0 and has tons of images and plant info. I’m a little rusty about virtual directories and accessing the databases since it’s been awhile. Maybe one (or more) of you would be nice enough to give me a clue?? Give me a few days to get it setup and then come by for a visit!! Don’t forget to sign the guestbook and/or post in the forum. :cool:

    Sooo… If the directory tree looks like this so far:

    \
    bin
    db
    images

    And the server path to the root of my account is this:

    e:\web\jaysplantsc\htdocs

    How would the script (located in the root of the above tree) access the databases (ie plants.mdb) that’s located in the “db” folder?

    In my old code I’m using Server.MapPath… What string would go inside Server.MapPath()?

    Thanks in advance! Jay aka 4Wheels
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    server.mappath("\db\plants.mdb")
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page