C#进程启动程序,并禁止原窗口操作
Process myProcess = new Process();
myProcess.StartInfo.FileName = exeName;
myProcess.Start();
while (!myProcess.HasExited)
{
this.WindowState = FormWindowState.Minimized;
System.Threading.Thread.Sleep(1000);
}
this.WindowState = FormWindowState.Normal;
myProcess.Close();