Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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