GOTO--Example The following batch program formats a disk in drive A as a system disk. If the operation is successful, the GOTO command directs MS-DOS to a label named "end". echo off format a: /s if not errorlevel 1 goto end echo An error occurred during formatting. :end echo Successfully formatted the disk in drive A.