GOTO Directs MS-DOS to a line in a batch program that is marked by a label you specify. You can use this command only in batch programs. Note: Usually, there are two ways of using GOTO command: 1. Unconditioned GOTO. Format: GOTO label This is used when there is a definite destination. Also, you can use this format to goto a label specified by an environment variable: GOTO %env% In AUTOEXEC.BAT, if multiple configuration in CONFIG.SYS is applied, you can use the command "GOTO %config%" to go to the corresponding label of the multiple configuration. For example: ---- CONFIG.SYS ----- [MENU] MENUITEM=MENU1, Direct startup MENUITEM=MENU2, Start with CD-ROM support [MENU1] [MENU2] DEVICE=C:\DRIVERS\CDROM\IDE.SYS /D:MSCD000 ---- END OF FILE ---- --- AUTOEXEC.BAT ---- @ECHO OFF PATH C:\DOS GOTO %CONFIG% :MENU1 GOTO END :MENU2 MSCDEX.EXE /D:MSCD000 GOTO END :END ---- END OF FILE ---- The example above shows using multiple configuration to boot with two different configurations. 2. IF ... GOTO Format. The format is: IF condition GOTO label This is used when there is need to do a check of a certain condition. For more information, please refer to MS-DOS Help or Windows NT command line command help.