Donovan J. Edye asked:

> G'Day,
>
> I believe this is a holy grail, but if anyone has any comments,
> components or suggestions then please send them my way.
>
> Economy Model
>
> I would like to have a command prompt window embedded in my
> app. Something
> along the lines of having a form embedded in a panel.
>
> Delux Model
>
> Economy + being able to repond to DOS commands entered eg. cd, md etc.

The "most obvious" method of achieving this would be to spawn a CMD.EXE or
COMMAND.EXE (depending on OS and need) with the stdin, stdout and stderr
redirected into anonymous (or named if required for some reason) pipes
that you handle the traffic for and display into your window and stuff
characters down as appropiate. Sounds like the for a custom control that
handles all the mucky bits and display.

We're been down this path before on the list with sample code for creating
a spawned app with redirected IO, so its all captured somewhere in the
list archive. The new custom control is not one I've haerd of before, but
it only looks like a day or so hacking to ghet working.

Cheers, Max.


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to