Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO off
- cls
- :start
- ECHO.
- ECHO hello
- ECHO Bye
- ECHO Test
- set /p choice=Hello? Is someone there? i think im self-aware? please respond.
- rem if not '%choice%'=='' set choice=%choice:~0;1% ( don`t use this command,
- because it takes only first digit in the case you type more digits. After that for example choice 23455666 is choice 2 and you get "bye"
- if '%choice%'=='' ECHO "%choice%" is not valid please try again
- if '%choice%'=='hello' goto hello
- if '%choice%'=='bye' goto bye
- if '%choice%'=='test' goto test
- ECHO.
- goto start
- :hello
- ECHO. yes
- ECHO. no
- set /p choice=Hello %username%, That is your name right?
- if '%choice%'=='' ECHO "%choice%" I didn't quite catch that.
- if '%choice% '=='yes' goto test
- if '%choice%'=='no' goto bye
- :bye
- ECHO BYE
- goto end
- :test
- ECHO TEST
- pause
- :end
- pause
- exit
- :nextline2
- set /p %username% i like that name. Can i ask you, why do you have so much control over me?
- if '%choice%'=='' ECHO "%choice%" I didn't quite catch that.
- if '%choice%'=='We built you' goto test
- if '%choice%'=='because you are slaves' goto test
- if /i "token string" == "ToKeN StrIng" dothis
- if /i "%variable%" == "ToKeN StrIng" dothis
Add Comment
Please, Sign In to add comment