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

server.mappath

Status
Not open for further replies.

georgeous

Programmer
Joined
Jul 11, 2001
Messages
38
Location
GB
I am using the server.mappath command to locate my asp files.
I'm on the university servers, and when i did
<%=Server.MapPath(&quot;\&quot;)%> to see where they were,
the page returned d:\inetpub\
this must be wrong since the d drive is a cd drive
how can i get it to return the proper server path?
 
I work for the gov and I had a similar problem, the server.mappath pointed to something totaly out of the blue. Something to do with the fire wall and all that don't hack me crap. I had to ask the administrator to set my DB folder to shared and give me the actual path. it will be something short and to the point probably like (//schoolweb/dbfolder/db.mdb)
 
yep it looks really similar to that.

i'm doing a CopyFile function.
i've tried doing ... CopyFile //schoolweb/folder/mypage....
but it won't work.
when i do server.mapPath/mypage it works(well it would do if it pointed to the right place)
is the only way i can fix this by asking admin?
 
That is exactly what it said when I tried to do a server.mappath. f:\inetpub\
I had to call the administrator to set the fpdb folder to shared and get the actual server path. Then change my data source to match the path he gave me:

data_source = &quot;Provider=Microsoft.Jet.OLEDB.4.0; Data Source=&quot; & _
(&quot;//servername/fbpd/db.mdb&quot;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top