Advertisement
FreeBooter

DarkTheme.bat

Sep 5th, 2017
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.31 KB | None | 0 0
  1. @Echo Off
  2. Color 1A
  3.  
  4. Cd %systemroot%\system32
  5.  
  6. Call :NoAdmin
  7.  
  8.  
  9.  
  10. Cls & Mode CON  LINES=11 COLS=70 & Color 0D &Title Created By FreeBooter
  11. Echo.
  12. Echo.
  13. Echo.
  14. Echo       ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
  15. Echo       º Do You Want To Restore Default Light Theme (Y/N)? º  
  16. Echo       ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
  17. Echo.
  18. Echo.
  19.  
  20.  
  21. Set /p input= RESPONSE:
  22. If /i  Not %input%==Y (Goto :_Ex) Else (Goto :_RegRestore)
  23.  
  24. :_Ex
  25. If /i Not %input%==N  (Goto :EOF) Else (Goto :_Start)
  26.  
  27.  
  28.  
  29. :_Start
  30.  
  31. Reg Add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "AppsUseLightTheme" /t REG_DWORD /d "0" /f >nul
  32. Reg Add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "SystemUsesLightTheme" /t REG_DWORD /d "0" /f >nul
  33.  
  34.  
  35. Cls & Mode CON  LINES=11 COLS=70 & Color 0D &Title Created By FreeBooter
  36. Echo.
  37. Echo.
  38. Echo.
  39. Echo       ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
  40. Echo       º Dark Theme For Settings And Modern Apps Enabled  º  
  41. Echo       ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
  42. Echo.
  43. Echo.
  44. ping -n 8 localhost >nul
  45. Exit
  46.  
  47.  
  48. :_RegRestore
  49. Reg Delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "AppsUseLightTheme" /f >nul
  50. Reg Delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "SystemUsesLightTheme" /f >nul
  51.  
  52. Cls & Mode CON  LINES=11 COLS=70 & Color 0D &Title Created By FreeBooter
  53. Echo.
  54. Echo.
  55. Echo.
  56. Echo       ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
  57. Echo       º Dark Theme For Settings And Modern Apps Disabled º  
  58. Echo       ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
  59. Echo.
  60. Echo.
  61. ping -n 8 localhost >nul
  62. Exit
  63.  
  64.  
  65.  
  66. :NoAdmin
  67. Reg query "HKU\S-1-5-19\Environment"
  68. If Not %ERRORLEVEL% EQU 0 (
  69.  Cls & Mode CON  LINES=5 COLS=48 & Color 0C &  Title  .....................- WARNING -.......................
  70.  Echo.
  71.  Echo.
  72.  Echo  YOU MUST HAVE ADMINISTRATOR RIGHTS TO CONTINUE
  73.  Pause >Nul & Exit
  74. )
  75.  Cls
  76.  Goto :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement