I am sure some of you know of Handbrake, and it's CLI. Now I am trying use this CLI, and read its standard output to get the progress. But the problem is, they are not using Console.WriteLine to write the progress in their CLI, they are using something else
If I read the standardoutput I only get this line:
Encoding task 1 of 2 blabla 0.00%
But if I don't redirect outputs or set CreateNoWindow to true, so the CLI shows up in its own window, I can see that the progress is ticking.
What I wonder is if there exist anything like Console.UpdateText, where you don't write a newline, you just edit the last written one.
And if so, how to read it?
I am reading with this code:
Code:string str; while ((str = prc.StandardOutput.ReadLine()) != null) { Console.Write(str); }






Reply With Quote