

They can be written with a basic text editor, such as Notepad, and saved with a ".bat" extension. BAT files can be manually created and edited to automate and perform repetitive tasks easily. A batch file is useful for storing sets of commands for an operating system that are always executed together and so the batch name can simply be entered instead of entering all the commands individually.

BAT files are primarily associated with Microsoft’s Batch Processing. bat is a file extension for a batch file format.
