well kash, A file that has the .BAT extension. This file usually contains a sequence (or batch) of commands. A batch files set of commands can be executed all at once by the batch file name rather than by each individual command name.
In MS-DOS, OS/2, and Windows, a batch file is a text file containing a series of commands intended to be executed by the command interpreter. When a batch file is run, the shell program (usually COMMAND.COM or cmd.exe) reads the file and executes its commands, normally line-by-line. Batch files are useful for running a sequence of executables automatically and are often used by system administrators to automate tedious processes.
Although a batch file is analogous to a shell script in Unix-like operating systems the limited syntax and commands means that they are less suited for general-purpose programming. These limitations lead to the widespread use of "enhancement" commands such as those in the Norton Utilities and later the replacement shell 4DOS in the DOS era.
DOS batch files have the filename extension .BAT. Batch files for other environments may have different extensions, e.g. .CMD in Windows NT and OS/2, or .BTM in 4DOS and related shells. There is no difference between the .BAT and .CMD extensions when the file is directly executed. However, when a shortcut is used to launch them, .BAT files run commands using the 16-bit COMMAND.COM command processor whereas if the extension is .CMD, the batch commands are run using the 32-bit Windows NT cmd.exe with all command extensions enabled. Also, the Windows 9x family only recognizes the .BAT extension.
Source site:http://en.wikipedia.org/w iki/Batch_file
Answered by
Saurabh
, an ibibo Master,
at
1:23 PM on April 14, 2008