Article View: comp.os.msdos.programmer
Article #7447Re: DISABLING CTRL-C in BAT FILES...
From: Steve.Withers
Date: Mon, 04 Jan 1993 23:56
Date: Mon, 04 Jan 1993 23:56
30 lines
1750 bytes
1750 bytes
In article <1i9uq6INNgj5@usenet.INS.CWRU.Edu> dab6@po.CWRU.Edu (Douglas A. Bell) writes: > > In a previous article, ummalik@ccu.umanitoba.ca (Ijaz Rashid Malik) says: > > > > >Hi, > >Does anyone know of ANY way that would disable Ctrl-C &/or Ctrl-Break in > >a BAT file. I have to shell to dos from a database app. (Paradox) to run > >a BAT file and if user hits Ctrl-C during BAT file processing, every thing > >gets ruined. I have to catch it somehow... > > > >Thanks very much. > > > I have seen memory resident programs which disable the control key or > you can do something with piping the tty output to null, but I can't remember > how to do it and my dos 5 manual is being less than helpful. > -- As this was in the OS/2 newsgroup too, I'll tell you that in the DOS SETTINGS of any DOS session under OS/2 there is a DOS_BREAK option you can set. Simply turn it off or on for a specific DOS session. Steve -- Steve Withers - Wellington, New Zealand | Steve.Withers@bbs.actrix.gen.nz | Space for rent. +64 4 478 4714 | - cheap rates, nice location. **** Happy user of OS/2 b2.1 **** |
Technical Details
Message-ID:
<1993Jan4.235629.6535@actrix.gen.nz>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!rpi!batcomputer!munnari.oz.au!comp.vuw.ac.nz!actrix!Steve.WithersReferences:
<C01pBA.I4J@ccu.umanitoba.ca> <1i9uq6INNgj5@usenet.INS.CWRU.Edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer,comp.sys.ibm.pc.misc,comp.os.os2.misc Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!rpi!batcomputer!munnari.oz.au!comp.vuw.ac.nz!actrix!Steve.Withers From: Steve.Withers@bbs.actrix.gen.nz Subject: Re: DISABLING CTRL-C in BAT FILES... Organization: Actrix Information Exchange Date: Mon, 4 Jan 1993 23:56:29 GMT Message-ID: <1993Jan4.235629.6535@actrix.gen.nz> References: <C01pBA.I4J@ccu.umanitoba.ca> <1i9uq6INNgj5@usenet.INS.CWRU.Edu> Sender: Steve.Withers@actrix.gen.nz (Steve Withers) Lines: 30