|
我一般用这工具调颜色,记事本用ANSI格式保存为 "设置颜色方案.bat"
- @echo off
- Title 切换颜色方案&if exist %WinDir%\System32\ureg.dll Mode 37,5 2>nul
- :CheckColor
- echo.
- for /f "tokens=2*" %%i in ('reg query "HKU\.DEFAULT\Control Panel\Colors" /v "Window" 2^>nul') do Set "wColor=%%j"
- if "%wColor%" == "255 255 255" Goto Green
- :White
- Color 8f
- echo 恢复默认颜色方案
- reg add "HKU\.DEFAULT\Control Panel\Colors" /v "Window" /t REG_SZ /d "255 255 255" /f 1>nul 2>nul
- reg add "HKCU\Control Panel\Colors" /v "Window" /t REG_SZ /d "255 255 255" /f 1>nul 2>nul
- reg add "HKCU\Control Panel\Desktop\Colors" /v "Window" /t REG_SZ /d "255 255 255" /f 1>nul 2>nul
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\DefaultColors\Standard" /v "Window" /t REG_DWORD /d "16777215" /f 1>nul 2>nul
- Goto End
- :Green
- Color 2f
- echo 设置绿色护眼方案
- reg add "HKU\.DEFAULT\Control Panel\Colors" /v "Window" /t REG_SZ /d "204 232 207" /f 1>nul 2>nul
- reg add "HKCU\Control Panel\Colors" /v "Window" /t REG_SZ /d "204 232 207" /f 1>nul 2>nul
- reg add "HKCU\Control Panel\Desktop\Colors" /v "Window" /t REG_SZ /d "204 232 207" /f 1>nul 2>nul
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\DefaultColors\Standard" /v "Window" /t REG_DWORD /d "13625548" /f 1>nul 2>nul
- Goto End
- :End
- echo [ 注销系统生效 ! ! ]
- if exist %WinDir%\System32\timeout.exe (timeout /t 2 >nul) else if exist %WinDir%\System32\choice.exe (choice /t 2 /d y /n >nul) else ping 127.1 -n 3 >nul
- Exit /b
复制代码
|
|