I have a BAT file that I am running using the following code:
@ECHO ON
java com.mypackage.test send
which result in this:
C:\myfolder>java com.mypackage.test send
EXEC Sending...
Received 1 response(s)
Status Code: C00
How do I take the Status Code
value (C00
) and save it to a string in my WinForm C# application so I can use it for other actions?
I set the..
proc.StartInfo.RedirectStandardError = false;
proc.StartInfo.RedirectStandardOutput = true;
but not sure what to do next...