Server.MapPath WAS Re: [thelist] (no subject)

Jim Williamson lakeridge_jim at hotmail.com
Tue Nov 19 11:09:08 CST 2002


Jason,

Thanks for the suggestion.  When I tried using Sever.Mappath it drew the
path from to the directory where the .asp page is located and not to where
the .txt file was so my result was:

C:\inetpub\wwwroot\dir1\subdir2\file.txt

Instead of:

C:\inetpub\wwwroot\dir1\subdir1\file.txt


----- Original Message -----
From: "Jim Williamson" <lakeridge_jim at hotmail.com>
Sent: Tuesday, November 19, 2002 11:17 AM


>Is there any way to determine what the abolute path of "file.txt" is from
>where "file1.asp" resides?

Use Server.MapPath(filename).

-joshua

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail




More information about the thelist mailing list