方法一:
//调用更新程序
ProcessStartInfo pInf = new ProcessStartInfo();
pInf.FileName =Application.StartupPath+"\\UPDATE.exe";
Process p = Process.Start(pInf);
p.WaitForInputIdle();
方法二:
Process pro = Process.Start("cmd.exe", "/c ping www.google.com");
pro.WaitForExit();
方法三:
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = @"D:\Program Files\Tencent\QQ\Bin\QQ.exe"; //"输入完整的路径"
process.StartInfo.Arguments = "QQ.exe"; //启动参数
process.Start();