Guest User

Untitled

a guest
Dec 20th, 2017
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 5.88 KB | None | 0 0
  1. mode con lines=15 cols=80
  2. color 0a
  3. @ echo off
  4. :start
  5. cls
  6. set wahl=0
  7. echo ------Menu-------
  8. echo Login         [l]
  9. echo Registriern   [r]
  10. echo Shutdown      [s]
  11. echo -----------------
  12. set/p wahl=Bitte waehlen:
  13. if "%wahl%"=="l" goto a
  14. if "%wahl%"=="r" goto b
  15. if "%wahl%"=="s" goto shutdown
  16. if "%Wahl%"=="" goto c
  17. if not "%wahl%"=="l"=="r"=="s" goto c
  18.  
  19.  
  20. :shutdown
  21. EXIT
  22.  
  23. :a
  24. cls
  25. set usernameb = 0
  26. set/p usernameb=Username:
  27. if "%usernameb%" == "admin" goto ad
  28. if "%usernameb%" == "guest" goto gu
  29. if "%usernameb%" =="" goto nv
  30. if not "%usernameb%" == "guest" goto nv
  31. if not "%usernameb% =="admin" goto nv
  32.  
  33.  
  34. :b
  35. cls
  36. echo Um sich zu registrieren wenden sie sie sich bitte and den Systemadministrator.
  37. echo Sie koennen jedoch ein temporaeres Profil mit beschraenkten Berechtigungen erstellen.
  38. echo Moechten sie dies nun tun?
  39. echo Ja   [j]
  40. echo Nein [n]
  41. set temp = 0
  42. set /p temp=Bitte waehlen:
  43. if "%temp%" == "j" goto temp_j
  44. if "%temp%" == "n" goto temp_n
  45.  
  46. :c
  47. cls
  48. echo Eingegebene Option ist nicht vorhanden. Leite zu Startbildschirm weiter.
  49. timeout /t 5
  50. goto start
  51.  
  52. :ad
  53. cls
  54. set password_ad = 0
  55. set /p password_ad=Password:
  56. if "%password_ad%" == "654321" goto ad_home
  57. if "%password_ad%" == "" goto pwf
  58. if not "%password_ad%" == "654321" goto pwf
  59.  
  60. :ad_l
  61. set password_ad = 0
  62. set /p password_ad=Password:
  63. if "%password_ad%" == "654321" goto ad_home
  64. if "%password_ad%" == "" goto pwfl
  65. if not "%password_ad%" == "654321" goto pwfl
  66.  
  67. :pwfl
  68. echo Passwort inkorrekt.
  69. if "%usernameb%" == "admin" goto ad_l
  70. if "%usernameb%" == "guest" goto gu_l
  71.  
  72.  
  73. :gu
  74. cls
  75. set password_gu = 0
  76. set /p password_gu=Password:
  77. if "%password_gu%" == "123456" goto gu_home
  78. if "%password_gu%" == "" goto pwf
  79. if not "%password_gu%" == "123456" goto pwf
  80.  
  81. :gu_l
  82. set password_gu = 0
  83. set /p password_gu=Password:
  84. if "%password_gu%" == "123456" goto gu_home
  85. if "%password_gu%" == "" goto pwfl
  86. if not "%password_gu%" == "123456" goto pwfl
  87.  
  88. :nv
  89. cls
  90. echo Diese Username existiert nich. Registrieren sich bitte. Leite zu Startbildschirm weiter.
  91. timeout /t 5
  92. goto start
  93.  
  94. :pwf
  95. cls
  96. echo Passwort inkorrekt. Leite zu Startbildschirm weiter.
  97. timeout /t 5
  98. goto start
  99.  
  100. :gu_home
  101. cls
  102. echo -------------------------------------
  103. echo            Wilkommen Guest
  104. echo         Starte Betriebsystem...
  105. echo -------------------------------------
  106. PING 1.1.1.1 -n 1 -w 5000 >nul
  107. cls
  108. echo Betriebsystem: Windows 100 Version: 1.0
  109. goto bs
  110.  
  111. :ad_home
  112. cls
  113. echo -------------------------------------
  114. echo            Wilkommen Admin
  115. echo         Starte Betriebsystem...
  116. echo -------------------------------------
  117. PING 1.1.1.1 -n 1 -w 5000 >nul
  118. cls
  119. echo Betriebsystem: Windows 100 Version: 1.0
  120. goto bs
  121.  
  122. :temp_n
  123. cls
  124. echo Leite zu Startbildschirm weiter.
  125. timeout /t 5
  126. goto start
  127.  
  128. :temp_j
  129. cls
  130. set temp_u=0
  131. set/p temp_u=Username eingeben:
  132. if "%temp_u%"=="admin" goto temp_u_b
  133. if "%temp_u%"=="guest" goto temp_u_b
  134. if "%temp_u%"=="" goto temp_u_n
  135. goto temp_home
  136.  
  137. :temp_u_b
  138. echo Username bereits vorhanden. Bitte wählen sie einen anderen Benutzernamen.
  139. timeout /t 5
  140. goto temp_j
  141.  
  142. :temp_u_n
  143. echo Bitte geben sie einen Benutzernamen ein.
  144. timeout /t 5
  145. goto temp_j
  146.  
  147. :temp_home
  148. cls
  149. set temp_true = 1
  150. echo -------------------------------------
  151. echo            Wilkommen %temp_u%
  152. echo         Starte Betriebsystem...
  153. echo -------------------------------------
  154. PING 1.1.1.1 -n 1 -w 5000 >nul
  155. cls
  156. echo Betriebsystem: Windows 100 Version: 1.0
  157. goto bs
  158.  
  159. :bs
  160. set command = 0
  161. set /p command=">"
  162. if "%command%" == "" goto nocommand
  163. if "%command%" == "list" goto list
  164. if "%command%" == "clear" goto clear
  165. if "%command%" == "list ?" goto list_?
  166. if "%command%" == "clear ?" goto clear_?
  167. if "%command%" == "logout" goto logout
  168. if "%command%" == "logout ?" goto logout_?
  169. If "%command%" == "lock" goto lock
  170. if "%command%" == "lock ?" goto lock_?
  171. if "%command%" == "calc" goto calc
  172. if "%command%" == "calc ?" goto calc_?
  173. if "%command%" == "dir ?" goto dir_?
  174. if "%command%" == "dir" goto dir
  175. if "%command%" == "cd" goto cd
  176. if "%command%" == "cd ? " goto cd_?
  177. goto wrongcommand
  178.  
  179.  
  180.  
  181. :wrongcommand
  182. echo Commando nicht bekannt.
  183. goto bs
  184.  
  185. :nocommand
  186. echo Geben sie ein Commando ein.
  187. goto bs
  188.  
  189. :list
  190. echo Fuer Hilfe zu einem Command geben sie den Command und dann ? ein. Zum Beispiel list ?.
  191. echo clear
  192. echo list
  193. echo logout
  194. echo lock
  195. echo calc
  196. echo dir
  197. goto bs
  198.  
  199. :list_?
  200. echo Listet alle vorhandenen Commands auf. Fuer Hilfe zu einem Command geben sie den Command und dann ? ein. Zum Beispiel list ?.
  201. goto bs
  202.  
  203. :clear
  204. cls
  205. goto bs
  206.  
  207. :clear_?
  208. echo Loescht alles auf was auf dem Bildschirm angezeigt wird.
  209. goto bs
  210.  
  211. :logout
  212. cls
  213. set "usernameb=nouser"
  214. echo Logge aus...
  215. PING 1.1.1.1 -n 1 -w 5000 >nul
  216. goto start
  217.  
  218. :logout_?
  219. echo Loggt sie aus und bringt sie zum Startbildschirm.
  220. goto bs
  221.  
  222. :lock
  223. cls
  224. if "%usernameb%" == "admin" goto lock_ok
  225. if "%usernameb%" == "guest" goto lock_ok
  226. goto temp_lock
  227.  
  228. :lock_ok
  229. echo Computer durch %usernameb% gesperrt.
  230. echo Geben sie bitte das Passwort von %usernameb% ein um den Computer zu entsperren.
  231. if "%usernameb%" == "admin" goto adminlock
  232. if "%usernameb%" == "guest" goto guestlock
  233.  
  234. :temp_lock
  235. echo Dieser Befehl ist fuer temporaere Profile nicht verfuegbar.
  236. goto bs
  237.  
  238. :adminlock
  239. goto ad_l
  240.  
  241. :guestlock
  242. goto gu_l
  243.  
  244. :lock_f
  245. echo Passwort inkorrekt.
  246. if "%usernameb%" == "guest" goto guestlock
  247. if "%usernameb%" == "admin" goto adminlock
  248.  
  249. :lock_?
  250. echo Sperrt den Computer, um ihn zu entsperren muss Ihr Passwort eingegben werden.
  251. goto bs
  252.  
  253. :calc_?
  254. echo Berechnet eine Gleichung. Zum Verlassen der Rechners quit eingeben und mit Enter bestätigen.
  255. goto bs
  256.  
  257. :calc
  258. set /p gleichung=Gleichung:
  259. if "%gleichung%" == "quit" goto bs
  260. set /a loesung=%gleichung%
  261. echo Losung:%loesung%
  262. goto calc
  263.  
  264. :dir
  265. set /p pfad=Pfad:
  266. dir %pfad%
  267. goto bs
  268.  
  269. :dir_?
  270. echo Gibt den Inhalt des gewählten Pfades wieder
  271. goto bs
  272. :cd
  273. set /p cda=cd:
  274. cd %cda%
  275. goto bs
  276. :cd_?
  277. goto bs
Add Comment
Please, Sign In to add comment