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


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();