Run cmd and get response?

How to run cmd in hidden mode from your application WindowsForm, and perform the commands receive a response.
Or how to run a console application with the attributes from the WindowsForm, and perform the commands receive a response.

Example: Start cmd
executed 1 command
got the answer
if the answer is 1 then
run 2
and so on...
March 20th 20 at 11:25
1 answer
March 20th 20 at 11:27
1 run can and as the 2 teams run in one cmd? - Laury_Hansen commented on March 20th 20 at 11:30
We still have to redirect stdin and. Then you write out your code in stdin command and stdout and stderr output. - zackary.Whi commented on March 20th 20 at 11:33

Find more questions by tags C++C#Visual Studio