在c#中如何获取执行的exe的路径
string programpath = new System.Uri( System.Reflection.Assembly.GetExecutingAssembly( ).CodeBase ).LocalPath; 或者 string programpath = System.Windows.Forms.Application.ExecutablePath;
日期:2020-04-11 22:50:23 来源:oir作者:oir
在c#中如何获取执行的exe的路径
string programpath = new System.Uri( System.Reflection.Assembly.GetExecutingAssembly( ).CodeBase ).LocalPath; 或者 string programpath = System.Windows.Forms.Application.ExecutablePath;