goto / :label / call
Redirects flow to a label.
Syntax
:label ... goto label
Description
A label is defined with :name, and it jumps there with goto ad. Another script is called with call other.bat. rem or :: is a comment line.
Example
Loading editor…
This language is for reference/learning only — copy the code and try it in your own environment.
Expected output
Finished
When to use?
Loop/flow control, subroutines.