【发布时间】:2013-08-22 00:52:41
【问题描述】:
假设我使用 ProcessStartInfo 执行一个程序:
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = @"program";
startInfo.Arguments = "start";
Process.Start(startInfo);
在执行期间,程序要求用户提供一些输入。如何从 C# 提供输入?
提前致谢。
【问题讨论】:
-
我想可能会事先捕获它并将其作为参数传递,但不清楚它的要求是什么,它是某种确定的行为吗?
标签: c# processstartinfo