Agent Orange
Veteran Member
I resurrected my old DOS batch menu program (compliments: Van Wolvernton "Supercharging DOS (c) 1986) with the intention of updating it a little bit. Basically what it does is let you gallivant around your PC via a batch file which holds a nice little menu. For example, If I wanted to quit the menu program and return to DOS, I would press the F10 key to exit.
:GET_RPLY
reply
if errorlevel 68 goto F10
:F10
cls
goto END
:END
The errolevels for the menu program are 59 through 69 which denotes F1 to F10 with errorlevel 69 sending it back to :Get_RPLY. The input is held by a small program called reply.com, which may be easily assembled through DEBUG. My problem is that I wish to to expand the menu to use F11 and F12 keys. Neither of those two function keys trap as you would expect. My question is does anyone know how to get an errorlevel return from the F11 and F12 keys.
:GET_RPLY
reply
if errorlevel 68 goto F10
:F10
cls
goto END
:END
The errolevels for the menu program are 59 through 69 which denotes F1 to F10 with errorlevel 69 sending it back to :Get_RPLY. The input is held by a small program called reply.com, which may be easily assembled through DEBUG. My problem is that I wish to to expand the menu to use F11 and F12 keys. Neither of those two function keys trap as you would expect. My question is does anyone know how to get an errorlevel return from the F11 and F12 keys.
Last edited: