控制台、app等桌面应用程序(兼容系统自启)

System.IO.Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName)

web BS架构

System.AppDomain.CurrentDomain.BaseDirectory