DOS/Goto
< DOS
Introduction modifier
Commande interne DOS, elle est utilisée dans un batch pour poursuivre l'exécution au label spécifié.
Utilisation modifier
GOTO label
Exemple modifier
GOTO plusloin ECHO Instruction sautée :plusloin ECHO Instruction interprétée
Terminer un batch ou une sous-routine modifier
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