Fairly simple question, but I can't seem to find an answer.
What's the C# equivalent to doing echo "foo" > CON
in a Windows batch script?
Note that I have to specifically output to the console stream (CON
). I've found lots of answers addressing how to redirect it when calling Process.Start()
, but my process is launched and STDOUT
is redirected outside of my control.