如何在IIS中获取网站路径 [英] How to get website path in IIS

查看:159
本文介绍了如何在IIS中获取网站路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在IIS中获取网站路径

示例:www.example.com

i want path = c:/ example

How to get website path in IIS
Example: www.example.com
i want path = c:/example

推荐答案

Server.MapPath [< a href =http://msdn.microsoft.com/en-us/library/ms524632%28v=vs.90%29.aspxtarget =_ blanktitle =New Window> ^ ]将您的虚拟路径转换为服务器文件路径。



如果这有帮助,请花时间接受解决方案。谢谢。
Server.MapPath[^] will turn your virtual path into server file path.

If this helps please take time to accept the solution. Thank you.


这篇关于如何在IIS中获取网站路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆