Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Retrieve text from the hidden command-line window
#8
I'll add another example in the article.
 
Code:
Copy      Help
/// Let my callback function receive output text lines in real time.

run.console(s => print.it(s), @"C:\Test\console2.exe"); //print it

run.console(s => { if (s.Starts("Error")) throw new Exception(s); }, @"C:\Test\console2.exe"); //or do whatever with it


Messages In This Thread
RE: Retrieve text from the hidden command-line window - by Gintaras - 08-16-2024, 03:57 AM

Forum Jump:


Users browsing this thread: 10 Guest(s)