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();