This is an *8 byte* com file which I use to do _simple_ menus in DOS.  It's 
called getkey.com & I found it as a debug script in a PC magazine.

save the source below to a file called getkey.scr and compile with
debug < getkey.scr

----begin cut here----
A 100
MOV AH,00
INT 16
MOV AH,4C
INT 21

N GETKEY.COM
RCX
8
W
Q
----end cut here----

syntax is like this:
:prompt
echo enter M for Modem D for Disk:
getkey
if errorlevel == 109 goto modem_setup
if errorlevel == 100 goto disk_setup
if errorlevel == 77 goto modem_setup
if errorlevel == 68 goto disk_setup
goto prompt

:modem_setup
some commands
goto exit

:disk_setup
some commands
goto exit

:exit

The numbers are just the ASCII key values, I think DOS needs the
errorlevel's in descending order for it to work correctly.

#disclaimer
I can't guarantee what this software will do on your PC.  It worked fine
on mine.  Back-up all your drives before playing with it :-)

Murray Barton
muzza@iinet.net.au
http://www.iinet.net.au/~muzza/hplx.html
