I need help with the DOS Commands.
The program boots. Then there is a a main menu screen. On that Main Menu,
there is a line that says ENTER. After the word ENTER, I need to enter the
number 4. How do I instruct DOS to boot the program....then wait for the
word ENTER. Afterwards, enter the number 4.
Any help or resources would be appreciated.
that should redirect the commands from the text program to the prog
tom
"pcmdc" <pc...@bigfoot.com> wrote in message
news:ljXV8.52434$wj4.4...@e3500-atl2.usenetserver.com...
>1) make a text file-prog.txt- with a 4 and a return
>2) use redirection eg "prog.exe <prog.txt"
You could do this in a single line, using a pipe:
echo 4| prog.exe
Note that this only works if the program accepts input
from the standard input handle (stdin). If the program
gets input some other way -- by calling the keyboard BIOS,
for example -- it won't work. For such cases, a keyboard
stuffer may be useful.
[Trimmed microsoft.public.basic.dos; as far as I can see,
the question has nothing to do with BASIC.]
>"pcmdc" <pc...@bigfoot.com> wrote in message
>news:ljXV8.52434$wj4.4...@e3500-atl2.usenetserver.com...
>> I am using a DOS program and I want to execute a 5-step series of menu
>> instructions by using a .bat file.
>>
>> I need help with the DOS Commands.
>> The program boots. Then there is a a main menu screen. On that Main
>Menu,
>> there is a line that says ENTER. After the word ENTER, I need to enter
>the
>> number 4. How do I instruct DOS to boot the program....then wait for the
>> word ENTER. Afterwards, enter the number 4.
>>
>> Any help or resources would be appreciated.
--
Charles Dye ras...@highfiber.com