C# WinFrom 文件绝对路径

string strIniFile = System.Windows.Forms.Application.StartupPath + “\\setting.ini”
原文地址:https://www.cnblogs.com/zhangpengshou/p/1291859.html