New
#200
reset icons without restart?
I'm not sure if this belongs here, but this is the closest thread I've found.
I frequently create Internet Shortcuts (.lnk files) and move them to a server on my network to make them available from any of the computers on my network - but Firefox (which is what I use for most of my Internet browsing) insists on making the shortcut's icon specific to both the Web site it refers to (by saving a copy of each site's favicon) and to the computer that created the shortcut (by pointing the shortcut to a randomly-named file on the local computer). Obviously, this breaks when you're viewing the shortcut from a different computer than the one that created it, so I edit the shortcut files to remove this unnecessary information. The problem is, after editing, the file still looks the same on the Windows 7 desktop. If I move or rename the file, the icon changes to reflect my editing, but if I move it back, the old icon comes back. Windows 8 doesn't have this problem; apparently it knows to re-initialize the icon information when the file is edited, but Windows 7 doesn't. I don't have to do anything other than restart the computer to clear this up, but it's awfully inconvenient to restart the computer every time I create a shortcut. Is there any way (short of restarting) to force Windows 7 to reread the innards to the .lnk file?
Example:
Internal text of .lnk file:
Code:[InternetShortcut] URL=https://www.sevenforums.com/tutorials/49819-icon-cache-rebuild-20.html IDList= HotKey=0IconFile=C:\Users\{me}\AppData\Local\Mozilla\Firefox\Profiles\{my}\shortcutCache\{random}==.ico IconIndex=0