SHARE
TWEET

Untitled

a guest Sep 18th, 2019 111 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @ECHO OFF
  2. :setup
  3. echo Checking for files...
  4. IF EXIST %userprofile%\khanrip goto home
  5. cls
  6. echo Creating files needed to start...
  7. cd %userprofile%
  8. mkdir khanrip
  9. cd khanrip
  10. mkdir modules
  11. mkdir accounts
  12. cd modules
  13. mkdir Ratios
  14. cd ..
  15. echo None>"selected-mod.txt"
  16. echo false>"guest.txt"
  17. echo None>"account.txt"
  18. cls
  19. echo Setup finished.
  20.  
  21. :home
  22. title KhanRip
  23. set /p module=< %userprofile%\khanrip\selected-mod.txt
  24. cls
  25. echo khan academy ripoff ( unstable, and barely works atm )
  26. echo.
  27. echo DASHBOARD
  28. echo.
  29. echo Type 'mod' to change or download a module
  30. echo or type 'lesson' to start a lesson!
  31. echo.
  32. echo Current Module: %module%
  33. set /p cmd="> "
  34. IF "%cmd%"=="mod" goto mod
  35. IF NOT "%module%"=="None" IF "%cmd%"=="lesson" goto account
  36. cls
  37. goto home
  38.  
  39. :mod
  40. cls
  41. echo khan academy ripoff
  42. echo.
  43. echo Type 'edit' to change the module
  44. echo Type 'download' to download a module
  45. echo or type 'cancel' to go to your dashboard.
  46. echo.
  47. set /p cmd="> "
  48. IF "%cmd%"=="download" goto mod-download
  49. IF "%cmd%"=="edit" goto mod-edit
  50. IF "%cmd%"=="cancel" goto home
  51. cls
  52. echo khan academy ripoff
  53. echo.
  54. echo Invalid response.
  55. pause >nul
  56. goto mod
  57.  
  58. :mod-edit
  59. cls
  60. echo khan academy ripoff
  61. echo.
  62. echo Here are the valid lessons:
  63. IF EXIST %userprofile%\khanrip\modules\ratios echo Ratios
  64. echo None
  65. set /p cmd="> "
  66. IF "%cmd%"=="none" goto mod-none
  67. IF EXIST %userprofile%\khanrip\modules\ratios IF "%cmd%"=="ratios" goto mod-ratio
  68. echo Invalid response.
  69. pause >nul
  70. goto mod
  71.  
  72. :mod-download
  73. cls
  74. echo khan academy ripoff
  75. echo.
  76. echo Here are the available modules:
  77. echo.
  78. echo Ratios
  79. set /p cmd="> "
  80. IF "%cmd%"=="ratios" goto ratios-download
  81. IF "%cmd%"=="cancel" goto mod
  82. echo Invalid response.
  83. pause >nul
  84. goto mod-download
  85.  
  86. :ratios-download
  87. cls
  88. echo khan academy ripoff
  89. echo.
  90. echo error, project in beta, function not added yet!
  91. goto mod-download
  92.  
  93. :mod-ratio
  94. set module=Ratios
  95. cd %userprofile%\khanrip
  96. echo Ratios>"selected-mod.txt"
  97. goto home
  98.  
  99. :mod-none
  100. set module=None
  101. cd %userprofile%\khanrip
  102. echo None>"selected-mod.txt"
  103. goto home
  104.  
  105. :account
  106. cls
  107. echo khan academy ripoff
  108. echo.
  109. echo Getting account info..
  110. set /p a= <%userprofile%\khanrip\account.txt
  111. if "%a%" == "None" GOTO account-create
  112. goto lesson
  113. :account-create
  114. cls
  115. echo khan academy ripoff
  116. echo.
  117. echo Lets create your account! (Account only saves to this computer)
  118. echo First, start by typing in your first name.
  119. set /p name="> "
  120. IF EXIST %userprofile%\khanrip\accounts\%cmd% goto invalid-account-name
  121. goto finish-account-setup
  122.  
  123. :invalid-account-name
  124. cls
  125. echo khan academy ripoff
  126. echo.
  127. echo That account name already exists! Add a number or an extra letter to your account name to finish it.
  128. set /p name="> "
  129. IF EXIST %userprofile%\khanrip\accounts\%cmd% goto invalid-account-name
  130. goto finish-account-setup
  131.  
  132. :finish-account-setup
  133. cls
  134. echo khan academy ripoff
  135. echo.
  136. cd %userprofile%\khanrip\accounts
  137. mkdir %name%
  138. cd %userprofile%\khanrip
  139. echo %name%>"account.txt"
  140. goto lesson
  141.  
  142. :lesson
  143. cls
  144. echo khan academy ripoff
  145. echo.
  146. echo Module: %module%
  147. echo Lesson 1
  148. set /p cmd="> "
  149. goto :lesson
  150. :no-mod
  151. cls
  152. echo khan academy ripoff
  153. echo.
  154. echo You dont have any modules selected! Select or download one from the mod menu.
  155. pause >nul
  156. goto home
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top