Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

By default, batch files can be terminated when the user presses Ctrl-C and can be paused by pressing Ctrl-S. Is there a way to disable this? The MS-DOS BREAK command apparently used to do this, but it is now ignored in Windows. I need something that works in WinNT 4.0 and Win2K.

share|improve this question

ignore confirmed by help:

C:>break /? Sets or Clears Extended CTRL+C checking on DOS system

This is present for Compatibility with DOS systems. It has no effect under Windows.

partial solution: start /MIN /B myscript.cmd :

B           Start application without creating a new window. The
            application has ^C handling ignored. Unless the application
            enables ^C processing, ^Break is the only way to interrupt
            the application.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.