e01

Matrix in BATCH

e01
May 27th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.04 KB | None | 0 0
  1. @echo off
  2. cls
  3. title Enter The Matrix
  4. color 02
  5.  
  6. set string=Wake up Neo...
  7. set /a len=18
  8. call :DisplayText
  9.  
  10. ping localhost -n 4 >nul
  11. set string=The Matrix has you...
  12. set /a len=25
  13. call :DisplayText
  14.  
  15. ping localhost -n 4 >nul
  16. set string=Follow the white rabbit.
  17. set /a len=28
  18. call :DisplayText
  19.  
  20. ping localhost -n 4 >nul
  21. set string=Knock, knock, Neo...
  22. set /a len=24
  23. call :DisplayText
  24.  
  25. ping localhost -n 4 >nul
  26.  
  27.  
  28. goto matrix
  29.  
  30.  
  31. :DisplayText
  32.  
  33. set /a dispvar =1
  34. set /a len +=1
  35.  
  36. :DisplayLoop
  37.  
  38. CALL SET str=%%string:~0,%dispvar%%%
  39.  
  40. cls
  41. echo %str%
  42. ping localhost -n 1 >nul
  43.  
  44. set /a dispvar +=1
  45.  
  46. if '%dispvar%'=='%len%' goto enddisplay
  47.  
  48. goto DisplayLoop
  49.  
  50. :enddisplay
  51. exit /b
  52.  
  53. :matrix
  54. setlocal enabledelayedexpansion
  55. for /l %%A in (1,1,39) do (
  56. set /a rnd=!random!%%5+1
  57. if !rnd!==1 (
  58. set /a rnd2=!random!%%26+1
  59. set num=1
  60. for %%A in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
  61. if !rnd2!==!num! (
  62. set add=%%A
  63. )
  64. set /a num+=1
  65. )
  66. ) else set /a add=!rnd!%%2
  67. set var=!var! !add!
  68. )
  69. echo !var!
  70. call :matrix
Add Comment
Please, Sign In to add comment