Results 1 to 3 of 3

Thread: server.mappath

  1. #1
    squid Guest

    Default server.mappath

    I want to find the current directory I&#039m in <BR>so i go server.mappath() but it needs an argument but then this doesn&#039t return the current path <BR>??<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: server.mappath

    You want the path to the folder conatining the script that&#039s running?<BR><BR>strPath = Request.ServerVariables("SCRIPT_NAME") &#039virtual path to this script<BR>strPath = Left(strPath, InStrRev(strPath, "/")) &#039remove file name<BR>strPath = Server.MapPath(strPath) &#039map this to a physical path<BR><BR>Dunc

  3. #3
    squid Guest

    Default nice....

    nice one

Posting Permissions

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