草庐IT

aProcess

全部标签

c# - 将信息传回控制台应用程序窗口的批处理

我有一个运行.bat和.vbs文件的控制台应用程序。启动这些进程的方法如下:publicvoidrunProcess(stringaPath,stringaName,stringaFiletype){stringstInfoFileName;stringstInfoArgs;if(aFiletype=="bat"){stInfoFileName=(@aPath+@aName);stInfoArgs=string.Empty;}else{//vbsstInfoFileName=@"cscript";stInfoArgs="//B//Nologo"+aName;}this.aProcess