DOS/Goto
Un livre de Wikibooks.
< DOS
Sections |
[modifier] Introduction
Commande interne DOS, elle est utilisée dans un batch pour poursuivre l'exécution au label spécifié.
[modifier] Utilisation
GOTO label
[modifier] Exemple
GOTO plusloin ECHO Instruction sautée :plusloin ECHO Instruction interprétée
[modifier] Terminer un batch ou une sous-routine
Pour sortir du batch ou d'une sous-routine, le label spécial :eof peut être utilisé :
ECHO Instruction interprétée GOTO :eof ECHO Instruction 1 sautée ECHO Instruction 2 sautée