FileInfo

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 .

Popularity4.1/5

315 votes

Quick AppUsed by
VerifiedVerified by FileInfo.com The FileInfo.com team has independently researched the DOS Batch file format and Mac, Windows, and Android apps listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified. If you would like to suggest any additions or updates to this page, please let us know .

Microsoft Windows 10 Icon

Breadcrumbs

DeveloperMicrosoft
Popularity4.1 | 315 Votes

Previous / Next

In-Depth

.BAT File Extension

DOS Batch File

DeveloperMicrosoft
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

FAQ

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.