From a056dffba6dd715d0365e2b106c97e6334f95781 Mon Sep 17 00:00:00 2001
From: Jan <rsge@web.de>
Date: Mon, 21 Feb 2022 15:31:14 +0100
Subject: [PATCH] Added white desktop icon fix

---
 Fix white icons.bat | 50 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 Fix white icons.bat

diff --git a/Fix white icons.bat b/Fix white icons.bat
new file mode 100644
index 0000000..3d75ec5
--- /dev/null
+++ b/Fix white icons.bat	
@@ -0,0 +1,50 @@
+@echo off
+set iconcache=%localappdata%\IconCache.db
+set iconcache_x=%localappdata%\Microsoft\Windows\Explorer\iconcache*
+
+echo.
+echo The explorer process must be temporarily killed before deleting the IconCache.db file.
+echo.
+echo Please SAVE ALL OPEN WORK before continuing.
+echo.
+pause
+echo.
+If exist "%iconcache%" goto delete
+echo.
+echo The %localappdata%\IconCache.db file has already been deleted.
+echo.
+If exist "%iconcache_x%" goto delete
+echo.
+echo The %localappdata%\Microsoft\Windows\Explorer\IconCache_*.db files have already been deleted.
+echo.
+exit /B
+
+
+:delete
+echo.
+echo Attempting to delete IconCache.db files...
+echo.
+ie4uinit.exe -show
+taskkill /IM explorer.exe /F
+If exist del /A /F /Q "%iconcache%"
+If exist del /A /F /Q "%iconcache_x%"
+start explorer.exe
+echo.
+echo IconCache database files have been successfully deleted.
+goto restart
+
+
+:restart
+echo.
+echo.
+echo You will need to restart the PC to finish rebuilding your icon cache.
+echo.
+CHOICE /C:YN /M "Do you want to restart the PC now?"
+IF ERRORLEVEL 2 goto no
+IF ERRORLEVEL 1 goto yes
+
+:yes
+shutdown /r /f /t 00
+
+:no
+exit /B
\ No newline at end of file
-- 
GitLab