Dos - Goto Command

About

To get more documentation about the Goto command, type on a console:

help goto

The goto command redirects the instruction flow to a labeled line in a batch program.

Syntax

GOTO label

Example

@echo off

Goto myLabel
echo Do I see this ?

:: The label myLabel
:myLabel
echo No You will see this

Output:

No You will see this

Powered by ComboStrap