c sharp gets an N summization of the root directory of the Web program and the non Web program

  • 2020-05-05 11:48:05
  • OfStack

Non-Web program

1.AppDomain.CurrentDomain.BaseDirectory

2.Environment.CurrentDirectory

3.HttpRuntime.BinDirectory

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


Web program

HttpCurrent.Context.Server.Mappath();

Related articles: