DOS Batch File
@ECHO OFFREM - LABEL INDICATING THE BEGINNING OF THE DOCUMENT.:BEGINCLSREM - THE BELOW LINE GIVES THE USER 3 CHOICES (DEFINED AFTER /C:)CHOICE /N /C:123 PICK A NUMBER (1, 2, or 3)%1REM - THE NEXT THREE LINES ARE DIRECTING USER DEPENDING UPON INPUTIF ERRORLEVEL ==3 GOTO THREEIF ERRORLEVEL ==2 GOTO TWOIF ERRORLEVEL ==1 GOTO ONEGOTO END:THREEECHO YOU HAVE PRESSED THREEGOTO END:TWOECHO YOU HAVE PRESSED TWOGOTO END:ONEECHO YOU HAVE PRESSED ONE
0 Comments:
Post a Comment
<< Home