File Type DOS Batch File IconDOS Batch File
File Format Proprietary (Microsoft)
Usage Open manually; may run a program or script when opened
Rank ★ ★ ★  Common

Contains a series of line commands that typically might be entered at the DOS command prompt; most commonly used to start programs and run maintenance utilities within Windows.

BAT files can be manually created and edited to automate tasks and perform repetitive operations; they can written with a basic text editor, such as Notepad, and saved with a ".bat" extension.

Important: You should not open unknown BAT files, as they may contain executable viruses or other malicious code.

Open With

IconMicrosoft Windows Command Prompt

IconMicrosoft Windows

IconAny text editor


IconParallels Desktop for Mac with Windows installed

IconAny text editor

Updated 2007