A batch file or batch job is a collection, or list, of commands that are processed in sequence often without requiring user input or intervention. With a computer running a Microsoft operating system such as Windows, a batch file is stored as a file with a .bat file extension. Other operating systems may define a batch job in a shell script, containing a list of commands to be executed one after the other.