win10 系统,如何编程实现其他EXE应用程序的启动?
win10 系统,如何编程实现其他EXE应用程序的启动?
下面的方法已经用过,在win10以下版本上没问题,但在win10系统不行。
1、调用系统dll使用其提供的方法。
[DllImport("kernel32.dll")]
public static extern int WinExec(string exeName, int operType);
2、最常见的ProcessStartInfo启动
[csharp] view plain copy print?
ProcessStartInfo info = new ProcessStartInfo();
info.FileName = @"路径\exe的文件名";
info.Arguments = "";
info.WindowStyle = ProcessWindowStyle.Minimized;
Process pro = Process.Start(info);