Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Batch files are a type of simple programming that can help you store a series of commands that you want to execute more than once. The batch file normally appears within a file with a .BAT extension. In most cases, you won’t need to perform any programming to create a batch file; simply create a file that contains the commands you want to execute one after the other.
NOTE Windows doesn’t support the Break command found in many older batch files. The original purpose of the Break command was to provide control over the Ctrl+Break key. Setting Break ON would let someone press Ctrl+Break to stop execution of a batch file. Windows ignores this command line switch. In addition, some versions of Windows, such as Windows Server 2008 Server Core, change support for some batch commands from previous versions of Windows and add new commands. Consequently, batch files that worked fine in Windows XP may suddenly stop working in Server Core. (If you’ve already updated your batch files to work in Vista (or newer versions of Windows), they should also work fine in Server Core.)