I want to run a shell command from C# and use the returning information inside my program. So I already know that to run something from terminal I need to do something like that:
string strCmdText;
strCmdText= "p4.exe jobs -e";
System.Diagnostics.Process.Start("CMD.exe",strCmdText);
so now command executed, and from this command some information is returned... My question is how can use this information in my program, probably something to do with command line arguments, but not sure.
I really need to use C#.