In DOS systems, batch files files that contain a sequence, or batch, of commands are often called BAT files because their filenames end with a.BAT extension. For example, DOS-based computers automatically executes the batch file named AUTOEXEC.BAT.
Recommended Reading: Webopedia’s batch file definition.