System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase;//獲取bin\Debug\目錄 System.AppDomain.CurrentDomain.BaseDirectory;//獲取bin\Debug\目錄 System.Environment.CurrentDirectory;//獲取bin\Debug目錄 System.IO.Directory.GetCurrentDirectory();//獲取bin\Debug目錄 System.Windows.Forms.Application.StartupPath;//獲取bin\Debug目錄 System.Windows.Forms.Application.ExecutablePath;//獲取bin\Debug\程序.exe
https://blog.csdn.net/weixin_30613343/article/details/95166711ide