.bat DOS/Windows batch file

Text & source code

MIME typeapplication/x-bat
DescriptionDOS/Windows batch file
CategoryText & source code
Based ontext/plain

Frequently asked questions

What is a .bat file?

A .bat file is a “DOS/Windows batch file” (MIME type application/x-bat).

How do I open a .bat file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .bat file?

No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.bat shows the guessed type.

Which format is .bat based on?

Technically a .bat file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.

Which MIME type belongs to .bat?

The MIME type is application/x-bat. In the Apache web server: AddType application/x-bat .bat; in nginx: types { application/x-bat bat; }.

Nearby entries