Note that there are some explanatory texts on larger screens.

plurals
  1. POChange and refresh icons programmatically (without rebooting)
    text
    copied!<p>When I'm replacing icons manually (i.e. NOT from the Folder Options window in explorer), the icon(s) aren't being updated. For example, if I execute this batch code:</p> <pre><code>REG ADD HKCR\testfile\DefaultIcon /ve /d "C:\test.ico,0" /f </code></pre> <p>the icon(s) show like they should in the list in Folder Options, but the icons aren't updated on the desktop or in explorer.</p> <p>The icons are updated if I just hit the "change icon" button for any file type and exit the Folder Options window. But this can't be done via batch or VBS as far as I know.</p> <p>Restarting explorer.exe DOES work, but if I do that, the application tabs in the task bar become buggy for some reason (e.g.: when an application is maximized, I can't just left click the tab in the task bar to minimize it anymore - I have to actually right click it and hit minimize...). Not to mention, if I do it that way, all open explorer windows will close down, and that's a little bothersome.</p> <p>I also have a copy of <strong>TuneUp Utilities</strong>, which has an option for reloading the icon cache, and this does work like intended. But once again, I can't access this tool via batch or VBS. And it doesn't restart explorer.exe or remove any files (like some solutions do). I'm positive of this since I don't have iconcache.db files <strong>anywhere</strong> on my OS drive.</p> <p>I also tried adding the registry entries via VBS instead, but that didn't help.</p> <p>Any batch or VBScript solutions are welcome!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload