Fix Windows displaying black icons in Explorer folders

It may happen sometime that the icons database of Windows becomes corrupted and needs repair. In such cases various files may display wrong icons instead of the icons normally associated with a type, or even black icons as if they are burned!

You don’t need to install any dedicated program to fix this problem. Open your notepad and paste the code I’m giving below.

Save the file with a *.bat extension (e.g. iconfix.bat) and run it as administrator. Take care to have all your programs closed and your work saved because your PC will restart automatically.

taskkill /IM explorer.exe /F
CD /d %userprofile%\AppData\Local\Microsoft\Windows\Explorer
attrib –h IconCache.db
DEL IconCache* /a
shutdown /r /f /t 00