Server.MapPath WAS Re: [thelist] (no subject)
Howard Cheng
howcheng at ix.netcom.com
Tue Nov 19 11:58:00 CST 2002
Actually, the usage is Server.MapPath(relativePathToFile).
So in your case, you'd want Server.MapPath("../subdir2/file.txt").
At 12:08 PM 11/19/2002 -0500, Jim Williamson wrote:
>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
::::::::::::::::::::::::::::::::::
Howard Cheng
http://www.howcheng.com/ <-- NEW!
howcheng at ix dot netcom dot com
AIM: bennyphoebe
ICQ: 47319315
More information about the thelist
mailing list