jjzjj

startprocessinfo

全部标签

c# - ProcessInfo 和 RedirectStandardOutput

我有一个应用程序在命令窗口中调用另一个进程,并且该进程更新了输出到控制台窗口的统计信息。我认为这是一个相当简单的操作,但我似乎无法让它工作。我错过了什么吗?stringassemblyLocation=Assembly.GetExecutingAssembly().Location;Processprocess=newProcess{ProcessStart={RedirectStandardOutput=true,UseShellExecute=false,WindowStyle=ProcessWindowStyle.Hidden,Arguments=arg,FileName=ass

c# - ProcessInfo 和 RedirectStandardOutput

我有一个应用程序在命令窗口中调用另一个进程,并且该进程更新了输出到控制台窗口的统计信息。我认为这是一个相当简单的操作,但我似乎无法让它工作。我错过了什么吗?stringassemblyLocation=Assembly.GetExecutingAssembly().Location;Processprocess=newProcess{ProcessStart={RedirectStandardOutput=true,UseShellExecute=false,WindowStyle=ProcessWindowStyle.Hidden,Arguments=arg,FileName=ass