Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help with MS DOS Command Lines

0 views
Skip to first unread message

pcmdc

unread,
Jul 7, 2002, 9:26:08 AM7/7/02
to
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.


Tom

unread,
Jul 7, 2002, 10:03:12 AM7/7/02
to
1) make a text file-prog.txt- with a 4 and a return
2) use redirection eg "prog.exe <prog.txt"

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...

Charles Dye

unread,
Jul 7, 2002, 1:09:50 PM7/7/02
to
On Sun, 07 Jul 2002 14:03:12 GMT, "Tom" <T...@nowhere.com> wrote:

>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


0 new messages