Microsoft DOS break command

Quick links

About break
Availability
Break syntax
Break examples

About break

Break can be used to enable or disable the breaking capability of the computer. For example, if you wanted to cancel a batch file or another MS-DOS processes, you can press Ctrl + C for a prompt asking if you want to cancel the current process.

Turning break off will cancel Ctrl + C; however, the user will still be able to press Ctrl + Pause/break and have the capability of getting out of a batch file or current running process.

Note: Newer versions of Windows (Windows ME, Windows 2000, Windows XP, and higher) only include this command for backwards compatibility and turning the break off has no effect.

Availability

The break command is an internal command and is available in the below Microsoft operating systems.

All Versions of MS-DOS
Windows 95
Windows 98
Windows ME
Windows NT
Windows 2000
Windows XP
Windows Vista
Windows 7
Windows 8

Break syntax

Windows Vista and later syntax
Windows XP and earlier syntax

Windows Vista and later syntax

Sets or clears extended CTRL+C checking on DOS system

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

If command extensions are enabled, and running on the Windows platform, then the BREAK command will enter a hard coded breakpoint if being debugged by a debugger.

Windows XP and earlier syntax

Sets or clears extended CTRL+C checking.

BREAK [ON | OFF]

Type BREAK without a parameter to display the current BREAK setting.

Break examples

break on

Turns on the break, which allows the Ctrl + C function.

break off

Turns off the break, not allowing Ctrl + C to cancel a process.

Additional information

  • See our break definition for further information and related links on this term.