Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- :type
- echo.
- set /P myname="Type your name: "
- echo.
- echo So your name is: %myname%?
- set /P isit="(y/n:) "
- echo.
- echo You responded: %isit%
- IF %isit%==y OR %isit%==Y OR %isit%==yes OR %isit%==Yes (
- GOTO :saidyes
- ) ELSE (
- GOTO :saidno
- )
- :saidyes
- echo.
- echo Hooray! Hey, %myname%!
- GOTO :END
- :saidno
- echo.
- echo OK, lets try again.
- BREAK
- GOTO :type
- :END
- PAUSE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement