非Web程序

1.AppDomain.CurrentDomain.BaseDirectory

2.Environment.CurrentDirectory

3.HttpRuntime.BinDirectory

The path to the current application's/bin directory.


Web程序

HttpCurrent.Context.Server.Mappath();

 

 

TraceBack: http://www.cnblogs.com/goody9807/archive/2006/10/20/534880.html

相关文章:

  • 2021-11-19
  • 2022-12-23
  • 2021-11-19
  • 2021-08-09
  • 2021-06-28
  • 2021-08-20
猜你喜欢
  • 2021-07-10
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案