|
GOTO
Within a batch program, directs Windows to a line identified
by a label. When the label is found, it processes the
commands that begin on the next line.
Syntax
GOTO label
Key
label : Specifies the line in a batch program that you
want to go to.
To exit a batch script file or exit a subroutine specify
GOTO:eof this will transfer control to the end of the
current batch file, or the end of the current subroutine.
Examples
echo off
format a: /s
if not errorlevel 1 goto end
echo An error occurred during formatting.
:end
echo End of batch program.
Cmd Commands
|