![]() |
![]() |
|
![]() |
![]() |
Encyclopedia :
B :
BA :
BAT :
Batch file |
|
|
Batch fileIn DOS and Windows, a batch file is a text file with a series of commands (see command line interface). When the batch file is run, the shell program (command.com or cmd.exe) reads the file and executes its commands. Either in order or it can have option flow control. A batch file is similar to a shell script under Unix-like operating systems. DOS batch files have the filename extension The default behaviour of the shell is to print each command to standard output before executing it. This is most often not desired, so the command HistoryMicrosoft operating system batch programming has evolved along with the product releases of these operating systems. Command interpreterss are provided with these operating systems that provide two distinct modes of work. First is the interactive mode, in which the user types commands which are then executed immediately. The second is the batch mode, which executes a predefined sequence of commands, stored as a text file with the extension .bat. The original concepts for both functionalities draw ideas from Unix shells, as well as other text based command line interfaces in use in the early 1980s, e.g. CP/M. Originally, the MS-DOS operating system provided a batch program interpreter for the shell The newest Microsoft Windows versions, Windows 2000 and XP, are not based on MS-DOS, but on Windows NT, introduced before MS-DOS 6.0. In NT systems, a native MS-DOS environment is absent, but included is an MS-DOS compatible shell, Various non-Microsoft command interpreters exist that provide enhanced batch program command syntax. An example of these is the 4DOS product. Several non-Microsoft implementations of batch compilers exist to convert batch programs to directly executable programs. The quality-of-implementation of these compilers varies widely. The IBM OS/2 operating system contains a text based command facility that is related to the ones supplied with Microsoft operating systems. See alsoExternal links
|
|
|
This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License. |
|
| © 2008 Chamas Enterprises Inc. |