asp程序如何知道文件实际目录?
设iis 安装在NT 的c:\intetpub\wwwroot上,文件index.htm在d:\for123\下。
d:\for123这个物理路径在iis中的虚拟名称是asp。
问题:
用什么方法得到http://127.0.0.1/asp/index.htm这个文件的真实物理路径d:\for123\index.htm?
我尝试过server.mappath函数功能不行:
server.mappath("/")返回值是c:\inetpub\wwwroot ;
server.mappath("/index.htm")返回值是"c:\inetpub\wwwroot\index.htm"而不是d:\for123\index.htm