.bat

4 claimants 4 primary 0 secondary shared primary (4)

SWH popularity

From the SWH-MSR-ARV dataset (Desmazières, Di Cosmo, Lorentz, MSR 2025; file nb_extensions_alphanum.csv) — one row per (ext, year) in the full SWH archive. Case-aggregated. citation.

4.2M
total occurrences
1.3M
since 2019 (31.1%)
1970–2023
years active

Case variants in archive: .bat (4.1M), .BAT (56.2K), .Bat (4.8K), .bAt (12), .BaT (10), .baT (10), .BAt (5), .bAT (2) — aggregated above.

Attribution status

This extension is attributed to Batch; Batchfile; Batchfile; Batchfile; Rexx; WinBatch as primary by 6 authoritative claims.

Authoritative sources: ✓ Linguist ✓ Pygments ✓ Wikidata · Q479833 ✗ Wikipedia · no claim

Disagree or have a correction? Open a labelling issue.

Claimants (6)

Languages that list .bat among their extensions. Strength reflects whether the upstream source treated it as their primary extension.
LanguageSourceStrength
Batchpygmentsprimary
Batchfilelinguistprimary
Batchfilepygmentsprimary
Batchfilewikidataprimary
Rexxwikidataprimary
WinBatchpygmentsprimary

Wikidata says… (1)

File formats, image formats, audio codecs and other non-PL entities that claim .bat on Wikidata (property P1195) or in the Wikipedia infobox. Source: data/derived/external_extension_index.csv. Click Use as new PL on any row to open the Add-PL form pre-filled with that entry's name, Wikipedia/Wikidata URL, and this extension — one submission creates the PL + claim.
Right entry isn't listed? Add manually ↗
FormatClass (Wikidata P31)Suggested labelMIMENotesAction
batch file Q479833
script file for Microsoft computer operating systems
file format; script fileapplication/x-batUse as new PL ↗

SWH-mined examples (2)

Real archived programs with this extension, byte-verified against the SWH archive. Useful for deciding what this extension actually is when the attribution is uncertain.
extractcode.bat · 843 B · seen 3325× in SWH
predicted: unclassified via fallback
swh:1:cnt:4b7424fc013d5af1a8f695e7e2c50142643f337f;origin=https://github.com/darcyfdu/findlicense;anchor=swh:1:rev:888cfb21a7378408032f60d06ee5598d3228dbc5;path=/extractcode.bat
Open in SWH · Raw bytes
ToCHT.bat · 1023 B · seen 2801× in SWH
predicted: unclassified via fallback
swh:1:cnt:2c9538b1775e2d9e5fbc7301d8bb66feb6b8e554;origin=https://github.com/mirbeta/MirClient;anchor=swh:1:rev:3dbba7d20f647e2716a1cacacdfe233e1695c33f;path=/Components/cnvcl/Source/ToCHT.bat
Open in SWH · Raw bytes
Request more SWH-mined examples
If the examples above don't disambiguate what .bat is, request a fresh mining run.
(or open the pre-filled issue directly)