Home > Commands A-M > Commands B

BREAK


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Sets or clears extended CTRL+C (^C) checking. You can use this command at the command prompt or in your CONFIG.SYS file.

You can press CTRL+C (^C) to stop a program or an activity (file sorting, for example). Typically, the operating system checks for CTRL+C (^C) only while it reads from the keyboard or writes to the screen or a printer. If you set BREAK to ON, you extend CTRL+C (^C) checking to other functions, such as disk read and write operations.


Syntax

BREAK [ON | OFF]

To display the current BREAK setting:

BREAK


Parameters
ON | OFF (v2.0 Win95)
Turns extended CTRL+C (^C) checking on or off. Default is: OFF.

Switches

none


Related

BREAK.SYS


Notes

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

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


Examples

To specify that the operating system is to check for CTRL+C (^C) only while it is reading from the keyboard or writing to the screen or printer, type:

    BREAK OFF

To specify that the operating system is to check for CTRL+C (^C) while it is reading from a disk or the keyboard or writing to a disk or the screen, type:

    BREAK ON

Errorlevels

none.


Availability
External
DOS
v3.0 v3.20 v3.05 v3.1 v3.21 v3.25 v3.30 v3.3A v3.3R v3.3T v3.31 v3.40 v4.0 v4.01 v4.01A v5.0 v5.0A v5.00.02 v5.001A v5.01 v5.02 v6.0 v6.10 v6.2 v6.21 v6.22 v6.23 v7.00 v7.0R1 v7.10 v8.00
Windows
Win95 Win98 WinME
Windows NT
NT3.5 NT3.51 NT4 NT2000 NTXP NT2003

Last Updated: 2006/12/01
Direct corrections or suggestions to: Rick Lively