2

A lot of questions in .NET when I see people use Process.Start or ProcessStartInfo I frequently see them launching cmd.exe /C TheirRealProgram.exe.

Does anyone know why people constantly do that instead of just launching TheirRealProgram.exe directly?

Is that "canonical example" that people get from google found here on Stack Overflow?

Does a canonical correct duplicate target that we can use in closing this ill-advised questions exists? If not, can we create one please.

3
  • Should be noted that it's off-topic for the main SO site too...in it's present form.
    – Paulie_D
    Commented Dec 14, 2015 at 17:24
  • 1
    I've edited this so we can start for a canonical search or create one if none exist.
    – rene
    Commented Dec 14, 2015 at 18:07
  • 3
    Getting I/O redirection right is rocket science and everybody gets it wrong. Having cmd.exe take care of it is rather wise, I always recommend it. Something like that. Commented Dec 14, 2015 at 18:21

1 Answer 1

-3

See capture process stdout and stderr in the correct ordering.

.NET doesn't have functionality to capture stdout+stderr which is quite a common task. This is basically a crutch.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .