How to prevent black boxes on desktop icons in Windows after removing shortcut arrows?
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Hypnotic Puzzle2
--
Chapters
00:00 How To Prevent Black Boxes On Desktop Icons In Windows After Removing Shortcut Arrows?
00:26 Accepted Answer Score 20
01:59 Answer 2 Score 0
02:27 Thank you
--
Full question
https://superuser.com/questions/1118434/...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#icons #desktopcustomization #debug #regedit #desktopicons
#avk47
ACCEPTED ANSWER
Score 20
The following value in regedit
%windir%\System32\shell32.dll,-50
is a transparent icon in shell32.dll
(in this case value -50
). Using any of these values to remove shortcut arrows in shell32.dll
will corrupt the IconCache.db
file located in C:\Users\UserName\AppData\Local
. This can temporarily be fixed by deleting IconCache.db
and restarting or logging off and on your computer. However, the black boxes will come back because Windows continues to corrupt IconCache.db
each time it tries to overwrite it with value -50
in shell32.dll
.
To permanently fix the problem without using 3rd party software, do this...
Download this blank.ico and save it somewhere on your C: drive
.
For example,
C:\Users\UserName\Pictures\Desktop Icons
.
Then use this value instead of %windir%\System32\shell32.dll,-50
in Shell Icons
value 29
in regedit (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
) like this:
C:\Users\UserName\Pictures\Desktop Icons\blank.ico
This will use the blank.ico
file on your C: drive
instead of accessing the transparent icon files on shell32.dll
and your IconCache.db
will no longer be corrupted, removing the black boxes and the shortcut arrows forever.
For those who want steps on how to do this in regedit, reading material can be found here on How-To Geek.
ANSWER 2
Score 0
Create key "Shell Icons", Add String Value and name it "29", add this text to the string value: %windir%\System32\shell32.dll,-50 and reboot.
If the shortcut arrow box is black then delete the text in the string value named 29 and then reboot. The arrow and the black box will be gone.
Ron