| 1 | <h2>Comments</h2> |
| 2 | <pre><code>:: |
| 3 | :: Foo bar |
| 4 | REM This is a comment too |
| 5 | REM Multi-line ^ |
| 6 | comment</code></pre> |
| 7 | |
| 8 | <h2>Labels</h2> |
| 9 | <pre><code>:foobar |
| 10 | GOTO :EOF</code></pre> |
| 11 | |
| 12 | <h2>Commands</h2> |
| 13 | <pre><code>@ECHO OFF |
| 14 | FOR /l %%a in (5,-1,1) do (TITLE %title% -- closing in %%as) |
| 15 | SET title=%~n0 |
| 16 | if /i "%InstSize:~0,1%"=="M" set maxcnt=3 |
| 17 | ping -n 2 -w 1 127.0.0.1</code></pre> |