font color in System.Diagnostics.Process.OutputDataReceived event RRS feed

  • Question

  • Recently we using System.Diagnostics.Process to run other program and using OutputDataReceived event to capture the process result, but some of the program using font color to determine process status, is that possible to get the font color in program outputs.

    Saturday, September 30, 2017 7:56 AM

All replies

  • To set font color - yes. To get font color - no. The output is just text. But good programs will write errors to stderror and you can separate stdout from stderror. Errors should be written (and monitored) using stderror.

    Michael Taylor

    Saturday, September 30, 2017 3:10 PM