Advertisement
Shasa

Batch Login & Register

Apr 11th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.91 KB | None | 0 0
  1. @echo off
  2. int
  3. set wahl=
  4. set Passwort=
  5. set passwort1=
  6. set Name=
  7. set Name1=
  8.  
  9. Start
  10. cls
  11. if not exist .txt goto Register
  12. cls
  13. echo.
  14. echo.
  15. echo            Login und Register
  16. echo --------------------------------------------
  17. echo.
  18. echo.
  19. echo [1] = Login
  20. echo [2] = Register
  21. set p wahl=Wahl
  22. if %wahl%==1 goto Login
  23. if %wahl%==2 goto Register
  24.  
  25. Login
  26. cls
  27. echo.
  28. echo.
  29. echo                   Login
  30. echo --------------------------------------------
  31. echo.
  32. echo.
  33. set p Name=Dein Name
  34. set p Passwort=Dein Passwort
  35. FOR F skip=1 %%A IN (%Name%.txt) DO SET Passwort1=%%A
  36. if %Passwort%==%Passwort1% goto Menu
  37. goto int
  38.  
  39. Register
  40. cls
  41. echo.
  42. echo.
  43. echo                   Register
  44. echo --------------------------------------------
  45. echo.
  46. echo.
  47. set p Name1=Dein Name
  48. set p Passwort1=Dein Passwort
  49. (
  50. echo Passwort
  51. echo %Passwort1%
  52. )%Name1%.txt
  53. goto int
  54.  
  55. Menu
  56. cls
  57. echo Du bist drin!
  58. pauseNUL
  59. goto Start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement