Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!rutgers!ucsd!nosc!helios.ee.lbl.gov!pasteur!ucbvax!ucsfcgl!cca.ucsf.edu!mis.ucsf.edu!simrin From: simrin@mis.ucsf.edu (Steve Simrin) Newsgroups: comp.lang.c Subject: Re: PC DOS "Bad command or file name" interrupt wanted Message-ID: <1359@ucsfcca.ucsf.edu> Date: 13 Sep 88 16:58:10 GMT References: <1988Sep12.202413.23423@gpu.utcs.toronto.edu> Sender: root@cca.ucsf.edu Reply-To: simrin@mis.ucsf.edu.UUCP (Steve Simrin) Organization: UCSF Medical Information Sciences Lines: 17 In article <1988Sep12.202413.23423@gpu.utcs.toronto.edu> sarathy@gpu.utcs.UUCP (Rajiv Sarathy) writes: >Let me re-phrase the "Subject". > >I want DOS to jump to my memory-resident-program instead of printing >"Bad command or file name" whenever appropriate. > >Yes, I tried posting to "comp.sys.ibm.pc", but to no avail. > DOS uses the EXEC function (Int 21h function 4Bh) to load programs and external commands. You might try trapping calls to this function and checking for the error. If the error is there send control to your handler, then to the standard handler. If there is no error, just chain to the normal handler. Steven Simrin