|
-
Nov 20th, 2002, 02:21 PM
#1
Thread Starter
Addicted Member
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
-
Nov 20th, 2002, 02:23 PM
#2
Fanatic Member
I think it is Server.MapPath(Request.ServerVariables("SCRIPT_NAME")).
-
Nov 20th, 2002, 02:24 PM
#3
Black Cat
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.
-
Nov 20th, 2002, 02:35 PM
#4
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|