SHARE
TWEET

Batch menu - Made by Trafen

TroelsLA Apr 2nd, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. title Batch menu
  3. :Main
  4. cls
  5. echo ===========================================================
  6. echo Made by Trafen
  7. echo Login or Register to continue
  8. echo %time% / %date%
  9. echo ===========================================================
  10. echo.
  11. echo 1) Register
  12. echo 2) Log In
  13. set /p choice=
  14. if %choice%==1 goto Register
  15. if %choice%==2 goto LogIn
  16. goto Error
  17. :Register
  18. cls
  19. set /p username=Enter your username:
  20. cd C:\
  21. md %username%
  22. cls
  23. set /p password=Enter your password:
  24. cd C:\%username%\
  25. md %password%
  26. cls
  27. echo Complete!
  28. goto Main
  29. :LogIn
  30. cls
  31. set /p loginName=Username:
  32. cd C:\
  33. if exist %loginName% goto PasswordLogIn
  34. if not exist %loginName% goto Error2
  35. :PasswordLogIn
  36. cls
  37. set /p loginPass=Password:
  38. cd C:\%loginName%\
  39. if exist %loginPass% goto LoggedIn
  40. if not exist %loginPass% goto Error3
  41. :LoggedIn
  42. cls
  43. echo You have been logged in as %loginName%
  44. echo Press any key to continue..
  45. pause >nul
  46. cls
  47. @echo off
  48. for %%a in (C CA CAK CAKE) do (
  49. cls
  50. echo %%a
  51. ping -n 2 "">nul
  52. )
  53. pause
  54. cls
  55. @echo off
  56.  
  57. ECHO Welcome!
  58. ECHO ===================================================================================
  59. ECHO Choose an option
  60. ECHO 1 = Shutdown
  61. ECHO 2 = Reboot
  62. ECHO 3 = Youtube
  63. ECHO 4 = Ninja
  64. ECHO 5 = cmd
  65. ECHO ===================================================================================
  66.  
  67. SET /p option=Choose one option:
  68.  
  69. IF %option%==1 SHUTDOWN /s /f /t 0
  70. IF %option%==2 SHUTDOWN -r -t 10
  71. IF %option%==3 start chrome https://www.youtube.com/
  72. IF %option%==4 start chrome https://www.youtube.com/watch?v=Nz1q4iJuBaE
  73. IF %option%==5 start %windir%\system32\cmd.exe
  74. cls
  75. rem Remove exit and add your instructions here.
  76. :Error
  77. cls
  78. echo Invalid Choice
  79. pause >nul
  80. goto Main
  81. :Error2
  82. cls
  83. echo Invalid Username
  84. pause >nul
  85. goto Main
  86. :Error3
  87. cls
  88. echo Invalid Password
  89. pause >nul
  90. goto Main
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