break
小猪老师 发表于 2020-06-22 16:29浏览次数:
break命令可用于启用或禁用计算机的break能力。
例如,如果要取消一个批处理文件或另一个MS-DOS进程,可以按Ctrl+C得到一个提示,询问是否要取消当前进程。
关闭break将取消Ctrl+C;
然而,用户仍然可以按下Ctrl+Pause/break键,并有能力获得批处理文件或当前运行的进程。
The break command may 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 can still press Ctrl+Pause/break and have the capability of getting out of a batch file or current running process.
更新版本的Windows (Windows ME, Windows 2000, Windows XP,以及更高版本只包含了这个命令来进行向后兼容性,关闭break没有任何效果。
Newer versions of Windows (Windows ME, Windows 2000, Windows XP, and higher) only include this command for backward compatibility and turning the break off has no effect.
目录:
1 break 运行系统环境
2 break 语法
3 break 示例
break 运行系统环境
Windows 95
Windows 98
Windows xp
Windows vista
Windows 2000
Windows 7
Windows 8
Windows 10
Windows NT
Windows ME
break 语法
Windows Vista和更高的语法
在DOS系统上设置或清除扩展的Ctrl+C检查。Break语法的存在是为了与DOS系统兼容。
它在Windows下没有效果。
如果命令扩展是启用的,并且运行在Windows平台上,那么BREAK命令将在调试器调试时输入一个硬编码的断点。
Windows XP和更早的语法
设置或清除扩展的Ctrl+C检查。
BREAK [ON | OFF]
不带参数的类型BREAK以显示当前BREAK设置。
Windows Vista and later syntax
Sets or clears extended Ctrl+C checking on DOS system.
Break syntax 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 示例
break on
打开break,允许使用Ctrl+C函数。
break off
关闭break,不允许Ctrl+C取消进程。
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.