GOTO command

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.

Synopsis

GOTO [:]label [file]

Compatibility

This command is compatible with cmd.exe, excepted the file parameter which is only supported by Dos9, since version 0.7

See also

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>