T
T
TechNOIR2020-06-22 11:12:41
C++ / C#
TechNOIR, 2020-06-22 11:12:41

C#. How to process that the application through Process.Start gave errors?

Hello everyone

How to handle that the application through Process.Start gave errors?

I'm pulling openssl from a script. If success, then the answer is empty, but sometimes throws out the text of errors.
How to catch it? to write a log, issue a message, etc. and crash the application

Thank you in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
NewDevLab, 2020-06-22
@TechNOIR

System.Diagnostics.ProcessStartInfo
RedirectStandardError = true

System.Diagnostics.Process
ExitCode
StandardError.ReadToEnd()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question