//获取应用程序自身路径和文件名
string filePath = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;只能在WindowsFormsApplication使用:
//获取应用程序自身路径和文件名
string filePath = System.Windows.Forms.Application.ExecutablePath; //获取应用程序自身路径和文件名
string filePath = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;//获取应用程序自身路径和文件名
string filePath = System.Windows.Forms.Application.ExecutablePath;
评论(0)
暂无评论。