System.Diagnostics.ProcessStartInfo process = new ProcessStartInfo(); process.FileName = Path.Combine("", @"D:\ConsoleStartExe.exe"); //EXEAdress为exe程序所在的位置 process.UseShellExecute = false; System.Diagnostics.Process.Start(process);
string path=Process.GetCurrentProcess().MainModule.FileName;//获取到的是当前应用程序的全路径:D:\a\b\AD.exe
System.Diagnostics.Process.Start(@"D:\ConsoleStartExe.exe", path);//带参数启动外部exe
标签:Process,exe,ProcessStartInfo,外部,System,process,参数,Diagnostics From: https://www.cnblogs.com/lyw0826/p/17586899.html