Path: utzoo!news-server.csri.toronto.edu!rutgers!ucsd!pacbell.com!decwrl!borland.com!sidney From: sidney@borland.com (Sidney Markowitz) Newsgroups: comp.os.msdos.programmer Subject: Re: Disabling an Internal DOS Command Message-ID: <1991Mar7.045826.29518@borland.com> Date: 7 Mar 91 04:58:26 GMT References: <1991Mar4.151301.12925@cbnewsk.att.com> <1991Mar6.233821.15345@bradley.bradley.edu> Distribution: usa Organization: Borland International Lines: 26 In article <1991Mar6.233821.15345@bradley.bradley.edu> data@buhub.bradley.edu (CS Major: LCMDR Data) writes: >In levericw@cheetah.ece.clarkson.edu (Walden Leverich) writes: > >>> Question #2: >>> Is there any way to set the state of the NumLock key. I already know Here's what I use to turn off num-lock on a machine that doesn't give me the choice of initial num-lock state in the CMOS setup. You can enter this using DEBUG and save it as a num-off.com file to be run in your autoexec.bat. By the way, it takes care of the indicator light, too: 1E push ds 31C0 xor ax,ax 8ED8 mov ds,ax BE1704 mov si,0417 8A04 mov al,[si] 24DF mov al,0df ; change this mask for caps & scroll lock as well 8804 mov [si],al 1F pop ds CD20 int 20 If you turn this into a source file to be assembled, note that the numbers 0417, 0DF and 20 are in hex, and this starts with org 100h. -- sidney markowitz