Home : File Types : BAT File

.BAT File Extension

File TypeDOS Batch File

DeveloperMicrosoft
Popularity
3.9 (173 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.

NOTE: While BAT files may be run on modern Windows operating systems, they may be run on older Windows operating systems such as Windows 95 and 98 as well.

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

Since BAT files store executable commands, the files may be used for distributing and executing malware attacks on victims' computers. To protect against malicious attacks, never double-click a BAT file you have downloaded or received via an email attachment unless you can verify the legitimacy of the source. You can open it with a text editor to inspect the commands and if you are still unsure about its safety, delete the file.

FREE DOWNLOAD
Open and view .BAT files with File Viewer Plus.
Programs that open BAT files
Updated 1/24/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 and Windows 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.