Lmoen
asked on
interacting with DOS
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
THEN
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
1) run dos command using winexec
THEN
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
hi,
i've just implemented the above code named "RunDosInMemo" in my app, and it works fine when the DOS prog returns something but it hangs up when it does not return anything.
the DOS outputs depends on the parameter being passed when called.
is there a way to determine if the DOS prog does not return anything?
thanks.
--juncanonigo
i've just implemented the above code named "RunDosInMemo" in my app, and it works fine when the DOS prog returns something but it hangs up when it does not return anything.
the DOS outputs depends on the parameter being passed when called.
is there a way to determine if the DOS prog does not return anything?
thanks.
--juncanonigo
teacher_mod
Community Support Moderator
Experts-Exchange
teacher_mod@experts-exchan