If you have DEBUG.EXE somewhere in your PATH, running the following MAKE-NUM.BAT will create two little utilities:- NUMON.COM
which flips Num-Lock ON, and
- NUMOFF.COM
which flips Num-Lock OFF.
Code:
@echo off
cls
echo Creating NUMON.COM ...
echo nnumon.com>~.scr
echo e0100 BA 40 00 8E DA A0 17 00 0C 20 A2 17 00 C3>>~.scr
echo rcx>>~.scr
echo E>>~.scr
echo w>>~.scr
echo q>>~.scr
debug<~.scr>nul
del ~.scr
dir numon.com
echo.
echo Creating NUMOFF.COM ...
echo nnumoff.com>~.scr
echo e0100 BA 40 00 8E DA A0 17 00 24 DF A2 17 00 C3>>~.scr
echo rcx>>~.scr
echo E>>~.scr
echo w>>~.scr
echo q>>~.scr
debug<~.scr>nul
del ~.scr
dir numoff.com