Skip to content

Supported batch features

benja2998 edited this page Jun 30, 2025 · 1 revision

Batch is a Windows scripting language created by Microsoft. Here you can find information about what syntax the compiler currently supports.

Section 1. Commands

The batch compiler currently supports the following:

  • echo - Print text on the console

Usage:

echo Hello world!
  • goto - Jump to a label

Usage:

goto label_name
  • labels - Create a section of the executable you can jump to

Usage:

:label_name
  • set - Set a variable

Usage:

set foo=bar
  • exit - Exit the process

Usage:

exit <args>

Section 2. Syntax features

The compiler currently supports the following:

  • %VAR% - This will be expanded to the value of VAR

Clone this wiki locally