Batchfile

1 program Added 2026-02-28T11:26:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Batch, Windows Batch, CMD, MS-DOS Batch
Provenance: commit 22908cb5c5 · authored 2026-02-28T12:26:25+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

7 sources · pl_id: pl/batchfile
LLM (this repo) · 1LinguistPygmentsWikipediaHyperpolyglotRosettacodeWikidata · Q479833

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Designed byMicrosoft

Extensions claimed by this language

7 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.batlinguistprimary4.2M files
.batpygmentsprimary4.2M files
.batwikidataprimary4.2M files
.btmwikidatasecondary24.5K files
.cmdlinguistsecondary3.5M files
.cmdpygmentssecondary3.5M files
.cmdwikidatasecondary3.5M files

Related languages

Batch (0.56)WinBatch (0.15)MSWLogo (0.15)RapidBATCH (0.14)SIMPL (0.13)

LLM-contributed programs

Fibonacci Sequence

Provenance: commit 22908cb5c5 · authored 2026-02-28T12:26:25+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.bat · license: Public Domain · added: 2026-02-28T11:26:00Z
@echo off
setlocal enabledelayedexpansion

set /a "a=0, b=1"
echo Fibonacci sequence:
echo %a%
echo %b%

for /l %%i in (1,1,10) do (
    set /a "c=a+b"
    echo !c!
    set /a "a=b, b=c"
)

Real programs from Software Heritage

2 samples mined from derived_datasets/<date>/contents/*.parquet, byte-verified against the SWH archive. Citation-grade qualified SWHIDs preserved.
extractcode.bat · 843 B · ext .bat · seen 3325× in SWH
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 (SWH) · GitHub raw
Show source
@echo OFF
@rem  Copyright (c) 2015 nexB Inc. http://www.nexb.com/ - All rights reserved.
@rem  


@rem  A minimal shell wrapper to the CLI entry point

set SCANCODE_ROOT_DIR=%~dp0

set SCANCODE_CMD_LINE_ARGS= 
set SCANCODE_CONFIGURED_PYTHON=%SCANCODE_ROOT_DIR%\bin\python.exe

@rem Collect all command line arguments in a variable
:collectarg
 if ""%1""=="""" goto continue
 call set SCANCODE_CMD_LINE_ARGS=%SCANCODE_CMD_LINE_ARGS% %1
 shift
 goto collectarg

:continue


if not exist "%SCANCODE_CONFIGURED_PYTHON%" goto configure
goto scancode

:configure
 echo * Configuring ScanCode for first use...
 set CONFIGURE_QUIET=1
 call "%SCANCODE_ROOT_DIR%\configure" etc/conf
 if %errorlevel% neq 0 (
    exit /b %errorlevel%
 )

:scancode
"%SCANCODE_ROOT_DIR%\bin\extractcode" %SCANCODE_CMD_LINE_ARGS%

:EOS
ToCHT.bat · 1023 B · ext .bat · seen 2801× in SWH
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 (SWH) · GitHub raw
Show source
@ECHO CnPack Component Package
@ECHO CHT Resource Files will be Copied to overwrite CHS Files 
@PAUSE
copy .\Lang\1028\CnGraphConsts.pas   .\Graphics\CnGraphConsts.pas  /Y
copy .\Lang\1028\CnLangConsts.pas    .\MultiLang\CnLangConsts.pas  /Y
copy .\Lang\1028\CnNetConsts.pas     .\NetComm\CnNetConsts.pas     /Y
copy .\Lang\1028\CnAAFontDialog.dfm  .\Graphics\CnAAFontDialog.dfm /Y
copy .\Lang\1028\CnCompAboutFrm.dfm  .\Common\CnCompAboutFrm.dfm   /Y
copy .\Lang\1028\CnFoxmailMsgFrm.dfm .\ObjRep\CnFoxmailMsgFrm.dfm  /Y
copy .\Lang\1028\CnProgressFrm.dfm   .\ObjRep\CnProgressFrm.dfm    /Y
copy .\Lang\1028\CnRS232Dialog.dfm   .\NetComm\CnRS232Dialog.dfm   /Y
copy .\Lang\1028\CnCompConsts.pas    .\NonVisual\CnCompConsts.pas  /Y
copy .\Lang\1028\CnConsts.pas        .\Common\CnConsts.pas         /Y
copy .\Lang\1028\CnDockGlobal.pas    .\NonVisual\CnDockGlobal.pas  /Y
copy .\Lang\1028\CnDBConsts.pas      .\DbReport\CnDBConsts.pas     /Y
@ECHO CnPack Component Package: CHT Resource Files Copied.
@PAUSE

Contribute — propose a file extension

Tell us where to find evidence about Batchfile (mapped to pl/batchfile). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Batchfile/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Batch No For bato →