Home : File Types : BAT File

.BAT File Extension

File TypeDOS Batch File

DeveloperMicrosoft
Popularity
3.9 (180 Votes)
CategoryExecutable Files
FormatText

What is a BAT file?

A BAT file is a DOS batch file used to execute commands with the Windows Command Prompt (cmd.exe). It contains a series of line commands in plain text that are executed to perform various tasks, such as starting programs or running maintenance utilities within Windows.

More Information

BAT files are typically only used by computer-savvy DOS or Windows users looking to make repetitive tasks easier to complete. Users can manually create BAT files with a text editor, such as Notepad or Wordpad, and add multiple commands on separate lines that can be executed by the command-line interpreter. When saving a batch file, save it with a .bat extension or save it as a .TXT file then rename the .txt file extension as .bat.

Common BAT Filenames

AUTOEXEC.BAT - The batch file run by DOS and older versions of Windows (95, 98, and Me) upon startup. It is located in the root directory of the boot drive.

warningWarning

BAT files may be used to distribute and execute malware attacks on victims' computers. To protect against malicious attacks, never double-click an unknown BAT file. If you want to inspect the commands stored in a BAT file, open it with a text editor.

FREE DOWNLOAD
Open and view .BAT files with File Viewer Plus.
Programs that open BAT files
Updated 2/4/2020

About BAT Files

Our goal is to help you understand what a file with a *.bat suffix is and how to open it.

The DOS Batch file type, file format description, and Mac, Windows, and Android programs listed on this page have been individually researched and verified by the FileInfo team. We strive for 100% accuracy and only publish information about file formats that we have tested and validated.

If you would like to suggest any additions or updates to this page, please let us know.