315 votes
BAT File - What is a .bat file and how do I open it?
Learn about .BAT files and view a list of programs that open them.
Languages
Overview
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 .
Microsoft Windows 10 Icon
Breadcrumbs
Previous / Next
In-Depth
.BAT File Extension
DOS Batch File
| Developer | Microsoft |
| Popularity |
4.1 | 315 Votes |
NEW: Open your .BAT file online with File Helper . View Online
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.
Warning
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.
Programs that open or reference BAT files
Sort
Pricing
Program Name
Platform
Reset
X
Windows
File Viewer Plus
—
Get it from Microsoft
Free +
Microsoft Windows Command Prompt
Included with OS
Microsoft Windows
Paid
Any text editor
Mac
Parallels Desktop for Mac with Windows installed
Free Trial
Any text editor
Web
FileHelper.com
Free
Android
WineHQ
Free
Category: Executable Files
Updated: February 4, 2020