Virtual DOS Window in VB?



Suppose you have an interactive DOS program that runs as follows in a
DOS window:

C:\> Prog1
Enter a char, x to quit: c
Char you entered: c
Enter a char, x to quit: b
Char you entered: b
Enter a char, x to quit: x
bye
C:\>

Is it possible to run Prog1 interactively within a VB program eg by
faking out the DOS window in an API, or some other method?
I mean genuinely interactive, where the program is able to capture and
analyze the text in the intermediate Prog1 responses, and respond
dynamically. (The command line program I have in mind is much more
complex than Prog1).

Thanks.

.



Relevant Pages

  • RE: How to format display ?
    ... Also, quit using +, it is a math ... > Part_number Char 25 ... > How can I print or fix the length of part number, ... > prints the same number of characters? ...
    (microsoft.public.access.modulesdaovba)
  • Re: Nios II -- Why does this error occur ?
    ... this is because your design send a ^D char to the JTAG UART,which is ... interpreted as 'quit' by nios2-terminal. ...
    (comp.arch.fpga)
  • Re: pressing q or non-numeric char to exit loop/program
    ... first - need to initialize quit. ... char quit=0; ... or the newsgroup name in square brackets in the subject line. ... have an appropriate newsgroups line in your header for your mail to be seen, ...
    (comp.lang.c.moderated)
  • Re: xmalloc string functions
    ... char *foo, *bar; ... will quit and a memory leak will occur because the return ... value of dup() was not freed */ ...
    (comp.lang.c)
  • Re: Virtual DOS Window in VB?
    ... to connect your process to the third party's Prog1 process. ... to interact with the shared console. ... > Enter a char, x to quit: ... > faking out the DOS window in an API, ...
    (comp.lang.basic.visual.misc)