PDA

View Full Version : Execute, monitor and control a command line tool?


BobbyBonilla
11-16-2006, 06:59 AM
Hello,

is there any way I can execute a command-line-program from within my delphi application so that the following things can be accomplished:

- the program should be hidden (not the process itself, only the interface)
- my delphi application should be able to read and write to the command line so that it can for example reply with "y" (yes) to questions asked by the command line tool

I am thankful for all kinds of suggestions.

Greetings

Bobby

questo
11-16-2006, 09:53 PM
The MSDN has an example for this. It is not Delphi-specific and the example has been written in C++. It should be possible to port it to Delphi since it only involves some Windows API calls. Anyway here's the link:

http://msdn.microsoft.com/library/default.asp?...

Regards,

Dennis