获取Console程序的路径和所在目录
string path = System.Reflection.Assembly.GetExecutingAssembly().Location;
string dir = System.IO.Path.GetDirectoryName(path);
转载于:https://blog.51cto.com/13713878410/1550382
获取Console程序的路径和所在目录
string path = System.Reflection.Assembly.GetExecutingAssembly().Location;
string dir = System.IO.Path.GetDirectoryName(path);
转载于:https://blog.51cto.com/13713878410/1550382