0

how to run a process (avrdude) in C# and get output live while the process is running?

If possible avrdude displays progress bars which I think updates last line with new progress like so:

Reading | ################################################## | 100% 0.01s

I would prefer ListBox but if possible to do that progress bar and it's not possible to do with listbox I will not mind.

I have tried many solutions, but one isn't working, another can't get ported from WPF to simple Windows forms, and the one I found that worked was somekind blocked I had to wait while that progress bar fills to get shown it.

Maybe someone knows how to get full output with all effects to C# app?

Paolo Moretti
  • 54,162
  • 23
  • 101
  • 92
Aurimas Niekis
  • 227
  • 1
  • 14
  • possible duplicate of [Redirect the output (stdout, stderr) of a child process to the Output window in Visual Studio](http://stackoverflow.com/questions/3642147/redirect-the-output-stdout-stderr-of-a-child-process-to-the-output-window-in) – tenfour Oct 15 '12 at 21:22
  • It's not 100% your case, but isn't it clear how to capture the output of a console app using redirected output? Or maybe I don't understand the question. If you're asking people to write an entire app for you, this is not the site to do it. – tenfour Oct 15 '12 at 22:26
  • no, I don't ask to write all the app I just asking maybe someone knows how to get that progress bar working.. – Aurimas Niekis Oct 16 '12 at 07:27

0 Answers0