Batch

1 program Added 2025-10-28T15:33:15Z Model: x-ai/grok-4-fastTemp: 0.4 Evidence Report issue View issues
Aliases: Windows Batch, CMD
Provenance: commit e6a95ab99a · authored 2025-10-28T16:33:15+01:00 · model x-ai/grok-4-fast

Sources mentioning this language

4 sources · pl_id: pl/batch
LLM (this repo) · 1PldbPygmentsEsolang

Extensions claimed by this language

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

Related languages

Batchfile (0.56)WinBatch (0.21)MSWLogo (0.17)SIMPL (0.17)RapidBATCH (0.16)

LLM-contributed programs

Interactive menu batch script

Provenance: commit e6a95ab99a · authored 2025-10-28T16:33:15+01:00 · model x-ai/grok-4-fast · Temp 0.4
code.bat · added: 2025-10-28T15:33:15Z
@echo off

:Start
cls
echo.
echo 1. Option one
echo 2. Option two
echo.
set /p op=Please choose an option and press ENTER (1 or 2):
if %op%==1 goto one
if %op%==2 goto two
echo.
echo That is not a valid option. Please try again.
pause
goto Start

:one
echo.
echo You chose option 1
pause
goto end

:two
echo.
echo You chose option 2
pause
goto end

:end

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 Batch (mapped to pl/batch). 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/Batch/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Batari BASIC Batch No For →