Advertisement
Guest User

Untitled

a guest
Mar 31st, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. @echo off
  2. mode 200 200
  3. :start
  4. color a
  5. title On/Off
  6. cls
  7.  
  8. echo 1. Dep-On
  9. echo 2. Dep-Off
  10.  
  11. set /p var=On/Off
  12.  
  13. IF '%var%' == '1' GOTO on
  14. IF '%var%' == '2' GOTO off
  15.  
  16. cls
  17. msg * That selection does not exist please try again!
  18. goto start
  19.  
  20. :on
  21. bcdedit.exe /set {current} nx AlwaysOn
  22. Pause
  23. cls
  24. goto start
  25.  
  26.  
  27.  
  28. :off
  29. bcdedit.exe /set {current} nx AlwaysOff
  30. pause
  31. goto start
  32. cls
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement