Im trying to create a GUI wrapper application for a dos utility. When I execute my dos utility application(dosapp.exe) in console look like this:
-------------------------
WELCOME
------------------------
What do you want to do?
1- Type 1 ,For Enter System
2- Type 2 ,Set Properties
3- TYpe 3, Exit
Enter Action:
On my delphi xe3 application, I have three buttons one for each action and I run dosapp.exe using CreateProcess and Pipes to capture response.
My Problem is how to write the actions on console process for my 3 buttons pulsations, for example, when the user click on button1 I need send to running created process(dosapp.exe) writeline("1") and get response.
I saw some examples for C# when this can by easy do it using process class and invoking Process.StandardInput.WriteLine("1")
But i can't doit on delphi, Any idea or hint.
edited: Finally Solved according David Heffman Comments.