Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# get error message from cmd command

ProcessStartInfo startInfo = new ProcessStartInfo(cmd, args);
startInfo.UseShellExecute = false;
startInfo.RedirectStandardError = true;
Process someProcess = Process.Start(startInfo);
string errors = someProcess.StandardError.ReadToEnd();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #error #message #cmd #command
ADD COMMENT
Topic
Name
3+4 =