C#获取执行目录
//获取执行目录
String startPath = System.Windows.Forms.Application.StartupPath;
//获取执行盘符
String startDisk = System.Windows.Forms.Application.StartupPath.Substring(0, 1);
//获取执行目录
String startPath = System.Windows.Forms.Application.StartupPath;
//获取执行盘符
String startDisk = System.Windows.Forms.Application.StartupPath.Substring(0, 1);