public static string GetCurrentPath()
{
System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly();
string path = asm.Location.Remove(asm.Location.LastIndexOf("\\")) + "\\";
return path;
}
转载于:https://www.cnblogs.com/swxj/archive/2013/01/11/2856073.html