Goto Ü
ßßßßß
Directs FreeDOS within a batch file to a line identified by a label.
When FreeDOS finds the label, it processes the commands beginning on the
next line.
Syntax: GOTO label
label Specifies the line in a batch program to which FreeDOS
should go.
Valid values for label
Label can include spaces but not other separators, such as semicolons
or equal signs.
Goto uses the first eight characters of each label
The goto command uses only the first eight characters of a label. There-
fore, the labels "freedos04" and "freedos05" are both equivalent to
"freedos0".
Using goto for conditional operations
Goto is often used with other commands to perform conditional operations.
Example:
{ File test.bat }
echo off
format a: /s
if not errorlevel 1 goto end
:end
echo End of test program
See Also:
If