SHARE
TWEET

Meow

TroelsLA Apr 2nd, 2019 102 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.  
  48. @echo off
  49. ECHO Welcome!
  50. ECHO ===================================================================================
  51. ECHO Choose an option
  52. ECHO 1 = Shutdown
  53. ECHO 2 = Reboot
  54. ECHO 3 = CMD
  55. ECHO 4 = Youtube
  56. ECHO 5 = Clock
  57. ECHO ===================================================================================
  58.  
  59. SET /p option=Choose one option:
  60.  
  61. IF %option%==1 SHUTDOWN /s /f /t 0
  62. IF %option%==2 SHUTDOWN -r -t 10
  63. IF %option%==3 start cmd.exe /k "net use"
  64. IF %option%==4 start chrome https://www.youtube.com/
  65. IF %option%==5 @echo off
  66. setlocal delayexpansion
  67. cls
  68. @mode con cols=35 lines=7
  69. title %username%`s watch
  70. :time    
  71. echo.      ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
  72. echo.      ³     %time%³
  73. echo.      ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
  74. echo.      ³      %date% ³  
  75. echo.      ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
  76. ping -n 2 0.0.0.0 >nul
  77. cls
  78. goto :time
  79. pause
  80. cls
  81.  
  82. :Delay centisecs
  83. set "b=1%time:~-2%"
  84. :wait2
  85.    set /A "e=1%time:~-2%, elap=e-b, elap-=(elap>>31)*100"
  86. if %elap% lss %1 goto wait2
  87. set "b=1%time:~-2%"
  88. exit /B
  89. pause
  90. cls
  91. rem Remove exit and add your instructions here.
  92. :Error
  93. cls
  94. echo Invalid Choice
  95. pause >nul
  96. goto Main
  97. :Error2
  98. cls
  99. echo Invalid Username
  100. pause >nul
  101. goto Main
  102. :Error3
  103. cls
  104. echo Invalid Password
  105. pause >nul
  106. 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