Controlling cmd.exe from Winforms

前端 未结 4 1756
面向向阳花
面向向阳花 2020-12-08 17:18

Question: I want to control cmd.exe from winforms.

I DO NOT mean every command in a single process, with startupinfo, and then stop.

I mean for example start

4条回答
  •  失恋的感觉
    2020-12-08 18:04

    You do not need interop for this. The .NET Process class gives you all you need, simply redirect standard input stream and output stream and it is done. You can find lots of examples how to do this on the internet.

提交回复
热议问题