Measures Concepts
GitHub icon

Batchfile

Batchfile - Programming language

< >

Batchfile is a programming language created in 1985.

#273on PLDB 39Years Old 72kRepos

Try now: Riju

A batch file is a kind of script file in DOS, OS/2 and Microsoft Windows. It consists of a series of commands to be executed by the command-line interpreter, stored in a plain text file. A batch file may contain any command the interpreter accepts interactively and use constructs that enable conditional branching and looping within the batch file, such as IF, FOR, and GOTO labels. Read more on Wikipedia...


Example from Riju:
echo "Hello, world!"
Example from hello-world:
@echo off echo Hello World
Example from Wikipedia:
C:\>set /p ="Message 1"<nul >data.txt C:\>set /p ="Message 2"<nul >>data.txt C:\>set /p ="Message 3"<nul >>data.txt C:\>type data.txt Message 1Message 2Message 3

Language features

Feature Supported Token Example
Gotos ✓
:: this would create an endless loop
:myLabel
goto myLabel
Comments ✓
REM A comment
:: Another type of comment
Line Comments ✓ REM
REM A comment
Strings ✓
Print() Debugging ✓ echo
Case Insensitive Identifiers ✓

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Day 605 · feedback@pldb.io · Logout