Command: |
Usage: |
Notes: |
Call {batch file}:{subroutine} |
Call batch.bat %a% |
|
Echo |
Echo {string} |
Echo Hello World |
For %a in (list) do command [ parameters ] |
For %a in (a.txt b.txt) do type %a |
|
Goto {location} |
Goto end |
|
If [not] errorlevel number command |
If |
|
Pause |
Pause |
Prints Press any key to continue… |
Rem |
Rem Comments |
|
Set |
Set {label} = {value} |
Set msg=hello |
Shift |
:Loop |
|
@ |
@command |
Suppresses command display |
Links:
DOS Batch Language
Google
FAQ at Batfile (Huge!)
Eric Phelps
Command Reference
WindowsShellScripting
NT Command Shell – Microsoft
Rob van der Woude
Tom Lavedas’ Batch File Applications
DOS FAQ
More Links