Is Server.Mapath Drive/path Dependent ????

Results 1 to 2 of 2

Thread: Is Server.Mapath Drive/path Dependent ????

  1. #1
    Join Date
    Dec 1969

    Default Is Server.Mapath Drive/path Dependent ????

    Hi Friends,<BR><BR>I have a problem . need help!!!!<BR><BR>I connect to my database using the below Server.Mapath codes. That works fine with any webServer at remote location or any local pc machine which has root directory as C: Drive eg.. C:Inetpubwwwroot but dose not work in the local pc which has root directory like D:Inetpubwwwroot or in that case any drive other than C:Drive. <BR><BR>set con2= Server.CreateObject("ADODB.Connection")<BR>Con2.Op en "Driver={Microsoft Access Driver (*.mdb)};" & _<BR>"Dbq=" & Server.MapPath(".") & " able.mdb;" & _<BR>"Uid=admin;" & _<BR>"Pwd=;"<BR><BR><BR>Any suggestions please<BR><BR>Thanks in advance.<BR>Regards<BR>B.........<BR>

  2. #2
    Join Date
    Dec 1969

    Default Is D: a mapped drive?

    Otherwise, MapPath works with any local drive. I&#039;ve used it on C through F.<BR><BR>-Doug

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts