Hi. How does one interact with DOS from Delphi/Pascal. I want to (for example) be able to interact with a program run externally (by e.g WinExec), and do different things based on its output.
1) run dos command using winexec
if *this* happens, do this
if *that* happens, do this,
so my question is basically how to do this - how can I use Delphi to read the output of another program run in e.g DOS?
Thanks for the help