batch file
Sign in to saveAlso known as batch, BAT file
script file for Microsoft computer operating systems
Key facts
- Filename extensions
- .bat , .cmd , .btm
- Internet media type
- application/bat application/x-bat application/x-msdos-program text/plain
- Developed by
- Microsoft
- Type of format
- Scripting
- Container for
- Scripts
via Wikipedia infobox
Described at
Link to a page describing this subject · 3,681 chars · not written by Vinony
Wikidata facts
- Image
- Endlosschleife durch Batchdatei (Windows 8.1).gif
Show 4 more facts
- file extension
- vbs
- Stack Exchange tag
- stackoverflow.com/tags/batch-file
- described at URL
- www.sweetscape.com/010editor/repository/files/Batch.bt
- media type
- application/x-bat
Sources (2)
via Wikidata · CC0
~23 min read
Article
A batch file is a script file in DOS, OS/2 and Microsoft Windows. It consists of a series of commands to be executed by the command-line interpreter, stored in a plain text file. A batch file may contain any command the interpreter accepts interactively and use constructs that enable conditional branching and looping within the batch file, such as IF, FOR, and GOTO labels. The term "batch" is from batch processing, meaning "non-interactive execution", though a batch file might not process a batch of multiple data.
Similar to Job Control Language (JCL), DCL and other systems on mainframe and minicomputer systems, batch files were added to ease the work required for certain regular tasks by allowing the user to set up a script to automate them. 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. Unix-like operating systems, such as Linux, have a similar, but more flexible, type of file called a shell script.