[alt.msdos.programmer] Control-C blocker needed

morgan@chaos.cs.brandeis.edu (Dylan Kaufman) (06/08/91)

Hi,

I am looking for something (probably a device driver) which will let
me completely block out Ctrl-C and Ctrl-Break during execution of the
AUTOEXEC.BAT file at boot-up.

I am running DOS3.2 at the moment, but I think I need it to work on
3.2, 3.3, 4.0, and 5.0, and I don't know of anything in DOS itself
that will let me do that... 

Any help would be appreciated... please send me email, and I will post
a summary to the net when I have some working answers....

Thanks,
--
-<>Dylan<>-                     MA EMT-M, CA EMT-1A, BEMCo 107
Dylan Kaufman 			Major in Computer Science
morgan@chaos.cs.brandeis.edu	Brandeis University, Waltham, MA
------<< Support your local Emergency Medical Services >>-------
"We are the Priests, of the Temples of Syrinx" - 2112, RUSH

max@gupta.portal.com (Max Rochlin) (06/11/91)

In article <MORGAN.91Jun7140438@chaos.cs.brandeis.edu> morgan@chaos.cs.brandeis.edu (Dylan Kaufman) writes:
>Hi,
>
>I am looking for something (probably a device driver) which will let
>me completely block out Ctrl-C and Ctrl-Break during execution of the
>AUTOEXEC.BAT file at boot-up.

Try making the first line of your autoexec.bat  BREAK OFF  
it's the simplest approach.  

-- 

  +------------------------------------------------------------------------+
  |     max@gupta.com      |     Max J. Rochlin     |   decwrl!madmax!max  | 
  +------------------------+------------------------+----------------------+

callawaycj@EA.USL.EDU (C.JamesCallaway) (06/15/91)

In article <1991Jun11.151950.2097@gupta.portal.com>, max@gupta.portal.com (Max Rochlin) writes:
>In article <MORGAN.91Jun7140438@chaos.cs.brandeis.edu> morgan@chaos.cs.brandeis.edu (Dylan Kaufman) writes:
>>
>>which will let
>>me completely block out Ctrl-C and Ctrl-Break during execution of the
>>AUTOEXEC.BAT
>
>Try making the first line of your autoexec.bat  BREAK OFF  


The BREAK Command Is Used To Control The Frequency That MS-DOS Checks For The
<CTRL-C>  Or <CTRL-Break> Combinations.  The Command BREAK OFF Directs MS-DOS
To Check For The Key Combinations Only During Input And Output Operations.

BREAK ON Will Allow MS-DOS To Check Whenever A Call Is Made To The Operating 
System's Service Functions.

So In This Case BREAK OFF Will Not Give The Results Asked.

An ISR Device Driver That Intercepts INT09h(BIOS Keyboard Handler) Or
INT1Bh(BIOS CtrlBRK) Or INT23h(BIOS CtrlC Handler), Might Do The Trick.


Let Me Know If You Find Something. Maybe I Could Use It, Too.

--

###############################################################################
#  C.JamesCallaway!  # CALLAWAYCJ@EA.USL.EDU |     FUTURE iMAGE SoftWorks!    #
# USL P.O. Box 41353 #--------------------------------------------------------#
#Lafayette, La 70504 # A Man Can Only Find Peace Within Himself...If He Looks!#
###############################################################################