- The script must have the extension .bat or .cmd
- The commands are case-insensitive. You could either use
ECHO
orecho
title
set the window name for the BAT fileecho
prints a statementecho off
usually the first statement, this ensures the program won't show the commandspause
pauses execution and outputs "press any key to continue...", once the user press a key the execution of the script continues::
,rem
comments the line@[command]
the at-sign hides the echo of a batch command
echo off
title My first batch script
echo Hello World