GOTO

This command directs the command processor to a labeled line in a batch program.

GOTO label

Parameters

  • label
    Specifies a text string used in the batch program as a label.

Remarks

In the batch file, you type a label on a line by itself, beginning with a colon. The GOTO command also accepts a target label of :EOF, which transfers control to the end of the current batch script file. The :EOF label provides an easy way to exit a batch script file without defining a label.

See Also

Command Processor Commands | Command Processor Shell

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.