获取应用程序路径

1. WinForm

Application.StartupPath

2. WebForm

Server.MapPath("~")

3. 通用方案,特别适用于类库开发。

AppDomain.CurrentDomain.BaseDirectory

posted on 2007-09-23 08:11  kings  阅读(270)  评论(0)    收藏  举报

导航