摘要:
对于Windows程序 和Web 应用程序来说,他们运行的路径是不一样的,所以关键是判断当前运行的程序是哪种程序.于是我们可以使用如下的代码 string path = ""; if (System.Environment.CurrentDirectory == AppDomain.CurrentDomain.BaseDirectory)//Windows应用程序则相等 ... 阅读全文
posted @ 2007-03-08 20:51
深蓝
阅读(1977)
评论(0)
推荐(0)

浙公网安备 33010602011771号