|
Answer» I wrote a code because I was bored and showing off at school. But here I got stuck.
@echo off :0 echo.Will you dance like a monkey? (yes,no,what_does_it_matter) set /p variable= if %variable% ==yes ( goto 1 ) if %variable% ==no ( goto 2 ) if %variable% ==what does it matter ( goto 3 ) :1 echo.Good now do it!! goto 1 :2 echo.Please? (yes/no) set /p variable1= if %variable1% ==yes ( goto 4 ) if %variable1% ==no ( goto 5 ) :3 echo.none of your biz now answer the question!! pause goto 0 :5 echo.YOU SUCK MONKEY BALLS!!!!! goto 5 :4 echo. Thanks alot your AWESOME!! Now you get to watch star wars pause @echo on telnet o towel.blinkenlights.nl
At the very end when i open telnet as a REWARD it just GOES to telnet but doesnt write what i want it to. How do I do this?
and a second question,
one of the options is what_does_it_matter can I CHANGE it so you can type just what does it matter? If I do it says invalid or something. put tekst into " " Code: [Select]if %variable% =="what does it matter" ( goto 3 )Actually you have to put quotes on both sides of the equals:
Code: [Select]if "%variable%"=="what does it matter" ( goto 3 )
or place set variable=%variable:"=%try do Code: [Select]telnet towel.blinkenlights.nlbtw nice film
|