Command
Type
Purpose
The GOTO subcommand transfers control to another line of the batch Þle.
Syntax
GOTO label
Remarks
The label is another line in the batch Þle consisting of a string up to eight characters
long. The label may be an environment variable.
If the speciÞed label is not found, then the batch Þle terminates with the error
message Label not found.
Examples
GOTO MESSAGE
This command will move the control of execution within the batch Þle to a line that
says:
MESSAGE
Note: A batch Þle label must be preceded by a colon (:).
GOTO
Internal Batch Subcommand
Chapter 5: ROM DOS Commands
5-55