Path: utzoo!news-server.csri.toronto.edu!rutgers!uwm.edu!linac!midway!valley From: valley@uchicago (Doug Dougherty) Newsgroups: comp.os.msdos.programmer Subject: Re: Disabling an Internal DOS Command Message-ID: Date: 12 Mar 91 01:22:46 GMT References: <1991Mar6.233821.15345@bradley.bradley.edu> <1991Mar7.045826.29518@borland.com> <19456@brahms.udel.edu> Sender: news@midway.uchicago.edu (News Administrator) Distribution: usa Organization: University of Chicago Lines: 35 sguerke@brahms.udel.edu (Stephen Guerke) writes: >You can create a small file called NUMOFF.COM by using an ASCII editor >(even EDLIN :)) and typing the following DEBUG script: >(Line numbers included for reference) >1: a 100 >2: mov ax,40 >3: mov ds,ax >4: mov ah,0 >5: mov bx,0017 >6: mov [bx],ah >7: int 20 >8: >9: r cx >10:e >11:n numoff.com >12:w >13:q >carefully proofread the above file (being sure that line 8 is blank >and that line 13 is q) and save it as NUMOFF.SCR . >To create NUMOFF.COM , at the prompt (be sure that the directory >containing DEBUG.COM in in your PATH) type the following command: > C> debug < numoff.scr >This should (it did for me when I used it :)) create a little program >named NUMOFF.COM. Put it in your autoexec.bat file and it will turn >off the Number Lock key and its light. It will only do the light if you have an AT (or better) type keyboard.