Any response will be appreciate.
Since <Enter> is the command terminator, you may need to work a little
closer to the hardware.
This tiny program (I call it getch.com) returns as errorlevel the ASII
code for the key pressed (for those that have ASCII codes). THis is a
debug script to create the program: debug < script_file.
a
XOR AX,AX
INT 16
MOV AH,4C
INT 21
rcx
8
ngetch.com
w
q
The blank line is essential.
if %errorlevel%==32 tests for a space
if %errorlevel%==13 tests for <Enter>
Another way to handle it, though with the risk of crashing the program if
something else is entered is
goto %errorlevel%
:13
:32
etc.
--
T.E.D. (tda...@mst.edu)