Results 1 to 4 of 4

Thread: Get web directory?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    UK
    Posts
    204

    Get web directory?

    Does anyone know how I can get the location of where my asp file is located on my server (in asp)?

    Like: "D:\Webserver\wwwserver1\mysite\www\myfolder"

    Thanks

    Neil

  2. #2
    Fanatic Member Kings's Avatar
    Join Date
    Aug 2001
    Posts
    673
    I think it is Server.MapPath(Request.ServerVariables("SCRIPT_NAME")).
    K i n g s

  3. #3
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Response.Write Server.MapPath("yourpage.asp")
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    UK
    Posts
    204
    Thanks guys its going now

Posting Permissions

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



Click Here to Expand Forum to Full Width