Jump to a label in a batch script. This command is among the first commands learned while learning batch script, and it is usefull since it allow conditional execution.
It might be preferable to use multiline if, especially in the case of a quite short piece of instructions.
GOTO [:]label [file]
label : the label where Dos9 will jump. A label is a word, or even a couple of words, which are used to identify the different pieces of codes, and this couple of words must be preceded by a column :. It is not necessary for labels to start at colum 1.
This command is compatible with cmd.exe, excepted the file parameter which is only supported by Dos9, since version 0.7
IF command, FOR loop, Conditional running Command list
Dos9 manual pages, The Dos9 Project - Copyright © 2010-2014 Darkbatcher
This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Please report bugs and mistakes at : <darkbatcher at dos9 dot org>