From d14a454f56495c90dc8bbd0040aba08c85367ea5 Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Sat, 21 Jan 2023 16:23:40 +0100 Subject: [PATCH] bugfixing --- tools/logon.cmd | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/logon.cmd b/tools/logon.cmd index 99c6ab5..a833754 100644 --- a/tools/logon.cmd +++ b/tools/logon.cmd @@ -431,6 +431,7 @@ rd /S /Q %STARTMENU%\"Windows Powershell" 2>nul rem ... stupid OS! (it pins "dead" icons to the taskbar) echo Removing all pinned icons from taskbar ... reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /f > NUL 2>&1 +call :RESTART_EXPLORER rem ... stupid OS! rem IE is such a zombie. I's coming back all the time ... @@ -467,7 +468,6 @@ goto END rem #################################################### :BGINFO - 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 @@ -477,7 +477,13 @@ echo Setting desktop COLOUR ... echo Starting BGInfo tool ... %TOOLS%\bginfo\bginfo64.exe %TOOLS%\bginfo\config.bgi /NOLICPROMPT /silent /timer:0 +goto :eof +:RESTART_EXPLORER +echo Restarting windows explorer ... +taskkill /f /im explorer.exe 2>nul +ping 127.0.0.1 -n 3 >nul 2>nul +start explorer.exe goto :eof rem ####################################################