






















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();
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。