Guest User

Untitled

a guest
Jun 22nd, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. @ECHO off
  2.  
  3. cls
  4.  
  5. :start
  6.  
  7. ECHO.
  8.  
  9. ECHO hello
  10.  
  11. ECHO Bye
  12.  
  13. ECHO Test
  14.  
  15. set /p choice=Hello? Is someone there? i think im self-aware? please respond.
  16.  
  17. rem if not '%choice%'=='' set choice=%choice:~0;1% ( don`t use this command,
  18. 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"
  19.  
  20. if '%choice%'=='' ECHO "%choice%" is not valid please try again
  21.  
  22. if '%choice%'=='hello' goto hello
  23.  
  24. if '%choice%'=='bye' goto bye
  25.  
  26. if '%choice%'=='test' goto test
  27.  
  28. ECHO.
  29.  
  30. goto start
  31.  
  32. :hello
  33.  
  34. ECHO. yes
  35.  
  36. ECHO. no
  37.  
  38. set /p choice=Hello %username%, That is your name right?
  39.  
  40. if '%choice%'=='' ECHO "%choice%" I didn't quite catch that.
  41.  
  42. if '%choice% '=='yes' goto test
  43.  
  44. if '%choice%'=='no' goto bye
  45.  
  46. :bye
  47.  
  48. ECHO BYE
  49.  
  50. goto end
  51.  
  52. :test
  53.  
  54. ECHO TEST
  55.  
  56. pause
  57.  
  58. :end
  59.  
  60. pause
  61.  
  62. exit
  63.  
  64. :nextline2
  65.  
  66. set /p %username% i like that name. Can i ask you, why do you have so much control over me?
  67.  
  68. if '%choice%'=='' ECHO "%choice%" I didn't quite catch that.
  69.  
  70. if '%choice%'=='We built you' goto test
  71.  
  72. if '%choice%'=='because you are slaves' goto test
  73.  
  74. if /i "token string" == "ToKeN StrIng" dothis
  75.  
  76. if /i "%variable%" == "ToKeN StrIng" dothis
Add Comment
Please, Sign In to add comment