Copy the following code to have an interactive question answer round with someone :
@ECHO OFF
ECHO:
ECHO ………………………………………..
ECHO PRESS 1 or 2 to select your task, or 3 to EXIT.
ECHO ………………………………………..
ECHO.
ECHO 1 – This fun is provided by KARAN.
ECHO 2 – This fun is not provided by KARAN.
ECHO 3 – EXIT
ECHO.
SET /P M=Type 1, 2, or 3, then press ENTER:
echo:
IF %M%==1 GOTO Correct
IF %M%==2 GOTO Wrong
IF %M%==3 GOTO EXIT
:Correct
echo You are right !!
GOTO END
:Wrong
echo You are wrong. This fun is provided by KARAN.
GOTO END
:END
PAUSE
goto EXIT
:EXIT
Save it with ".bat" extension.
@ECHO OFF
ECHO:
ECHO ………………………………………..
ECHO PRESS 1 or 2 to select your task, or 3 to EXIT.
ECHO ………………………………………..
ECHO.
ECHO 1 – This fun is provided by KARAN.
ECHO 2 – This fun is not provided by KARAN.
ECHO 3 – EXIT
ECHO.
SET /P M=Type 1, 2, or 3, then press ENTER:
echo:
IF %M%==1 GOTO Correct
IF %M%==2 GOTO Wrong
IF %M%==3 GOTO EXIT
:Correct
echo You are right !!
GOTO END
:Wrong
echo You are wrong. This fun is provided by KARAN.
GOTO END
:END
PAUSE
goto EXIT
:EXIT
Save it with ".bat" extension.
0 comments:
Post a Comment