xxxxxxxxxx
:: This is a comment that won't be printed
- or -
REM This is a comment that will be printed
ECHO "Hello" & :: This command prints 'Hello'
- or -
ECHO "Hello" REM This command prints 'Hello'
xxxxxxxxxx
:: This is a comment
REM This is also a comment
echo Hello world & :: This is an inline comment
xxxxxxxxxx
Use :: or REM
Eaxmple:
:: comment goes here
REM comment goes here
Inline comments:
commands go here & :: comment goes here