Show Menu

Batch (.bat file) Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.


consists of a series of commands
executed by the comman­d-line interp­reter
stored in a plain text file

Passing parameters

The program name as it was called
%1 to %9
The command line parameters


Commands starting with @ are not printed in the console
Starts a comment (1-liner)

Basic commands

Defines the value of a variable.

Special variables

current working directory

Help Us Go Positive!

We offset our carbon usage with Ecologi. Click the link below to help us!

We offset our carbon footprint via Ecologi