这个过程启动一个运行几秒钟的bat文件,之后我需要传递一个参数来继续。如何将密钥发送到在C#中启动bat文件的进程?
无法将此参数作为bat文件的输入参数传递。
这是据我去
ProcessStartInfo ProcessInfo;
Process Process;
ProcessInfo = new ProcessStartInfo("cmd.exe", "/c " + command);
Process = Process.Start(ProcessInfo);
现在,几秒钟后,一个菜单出现,我必须输入我选择继续。
我该怎么做?
好的,你试过了什么?你尝试过什么吗? – BugFinder