2021-04-11 22:34:30 +02:00
|
|
|
@echo off
|
2023-01-17 07:11:47 +01:00
|
|
|
set TOOLS=c:\tools
|
|
|
|
|
|
|
|
set CONFIG=%TOOLS%\scripts\config
|
2021-04-11 22:34:30 +02:00
|
|
|
set THEMES=C:\Windows\Resources\Themes
|
2023-01-20 08:15:22 +01:00
|
|
|
set R=0
|
|
|
|
set G=0
|
|
|
|
set B=0
|
|
|
|
|
|
|
|
IF %1.==. GOTO USAGE
|
|
|
|
set R=%1
|
|
|
|
|
|
|
|
IF %2.==. GOTO USAGE
|
|
|
|
set G=%2
|
|
|
|
|
|
|
|
IF %3.==. GOTO USAGE
|
|
|
|
set B=%3
|
2021-04-11 22:34:30 +02:00
|
|
|
|
|
|
|
echo ####### %0 #######
|
|
|
|
|
2023-01-20 22:26:36 +01:00
|
|
|
isuseradmin
|
|
|
|
if %ERRORLEVEL% == 0 (
|
|
|
|
echo Copying AEROLITE theme ...
|
|
|
|
copy /Y %CONFIG%\aerolite.theme %THEMES%
|
|
|
|
)
|
2023-01-20 08:15:22 +01:00
|
|
|
|
|
|
|
echo Activating AEROLITE theme ...
|
2021-04-11 22:34:30 +02:00
|
|
|
powershell -command "Start-Process %THEMES%\aerolite.theme"
|
|
|
|
|
|
|
|
echo sleep 5 seconds ...
|
|
|
|
ping 127.0.0.1 -n 5 > NUL 2>&1
|
|
|
|
|
|
|
|
taskkill /F /IM SystemSettings.exe 2>nul
|
|
|
|
|
2023-01-20 22:33:32 +01:00
|
|
|
echo sleep 5 seconds ...
|
|
|
|
ping 127.0.0.1 -n 5 > NUL 2>&1
|
|
|
|
|
2023-01-20 22:26:36 +01:00
|
|
|
echo Removing the desktop wallpaper ...
|
|
|
|
reg add "HKCU\Control Panel\Desktop" /v WallPaper /t REG_SZ /d " " /f 1>nul
|
|
|
|
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
|
|
|
|
|
|
|
|
echo Setting the desktop colour ...
|
|
|
|
%TOOLS%\setbgcol %R% %G% %B%
|
|
|
|
|
2021-04-11 22:34:30 +02:00
|
|
|
echo ####### %0 #######
|
2023-01-20 08:15:22 +01:00
|
|
|
GOTO END
|
|
|
|
|
|
|
|
:USAGE
|
|
|
|
echo "usage: %0 <R> <G> <B>"
|
|
|
|
echo.
|
2023-01-17 07:11:47 +01:00
|
|
|
|
2023-01-20 08:15:22 +01:00
|
|
|
:END
|
2023-01-20 22:26:36 +01:00
|
|
|
|