System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo(); //设置外部程序名 Info.FileName = "eclipse.exe"; //设置外部程序工作目录为 C:\ Info.WorkingDirectory = @"D:\常用软件\eclipse"; //最小化方式启动 Info.WindowStyle = System.Diagnostics.ProcessWindowStyle.Minimized; //声明一个程序类 System.Diagnostics.Process Proc; try { Proc = System.Diagnostics.Process.Start(Info); System.Threading.Thread.Sleep(500); } catch (System.ComponentModel.Win32Exception) { return; }
相关文章: