Code Process myProcess = new Process(); ProcessStartInfo myProcessStartInfo = new ProcessStartInfo(Server.MapPath("test.bat")); myProcessStartInfo.UseShellExecute = false; myProcessStartInfo.RedirectStandardOutput = true; myProcess.StartInfo = myProcessStartInfo; //设置不显示窗口 myProcess.StartInfo.CreateNoWindow = true; myProcess.Start(); myProcess.Close(); 转载于:https://www.cnblogs.com/lf78995525/archive/2009/09/22/1571954.html