Batch File (.bat or .cmd) is the scripting language used by the DOS, OS/2, and Microsoft Windows command-line interpreters to automate sequences of commands.