C# console app net 2.0 How to get actual remaining time of another process running?

35 Views Asked by At

i have a c# console program .Im using .net 2.0 . Im launching an exe from my console program. That exe shows progress bar on taskbar.

Here i want to read progress percentage from that exe and want to display (1% 2% 3% etc) on my console app program.

(i dont want to display whole output of that exe into my program. i also did test of setting following code but it shows all output of that exe i only want to display percentage )

Is this possible using .net 2.0 ?

im beginner in c#

i have following working code

string fullName = "A.exe" ;
      Process p1 = new Process();
      p1.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
      p1.StartInfo.UseShellExecute = true;
      p1.StartInfo.FileName = fullName;
      p1.Start(); 
      p1.WaitForExit();

C# console application display remaining time or percentage from another running process

0

There are 0 best solutions below