Open DMacMakes opened 3 weeks ago
Hi, welcome back! :D Now it finally passed the VirusTotal checks. The issue resolved itself without needing to modify the part of the script that I thought would be suspicious. Though, I haven’t posted a release for this version yet.
About this issue. When you change a folder icon, it sometimes updates immediately, but often it doesn't. You might need to wait around 30-40 seconds and then manually refresh it using "Refresh Icon Cache (Without Restart)." Alternatively, if you use the "restart explorer" method, the icon will change immediately without needing to wait.
What does "Refresh Icon Cache" do?
When generating/changing a folder icon, the process is similar:
So, it actually already did what "Refresh Icon Cache" does. In my experience, while it works sometimes, more often it doesn’t. This has been a persistent issue; as it appears that Explorer doesn't always recognize the change immediately.
I've searched for solutions on "how to make folder icon changes update instantly," and I did find some useful hints, such as this Stack Overflow post and this recent discussion on VBForums. However, I haven’t yet found a method I can apply to this project, as I don't have knowledge in VBScript, C, C++, or any language other than windows batch script.
Thanks for the very thorough answer 🙏. You've done some pretty flash work with batch scripts and calls to ImageMagick!
Hopefully over the Dec/Jan holidays I'll get a chamce to look into how the cache/icons can be refreshed in C++, and maybe make a little exe or dll. The refresh problem seems amazingly iffy - even before you start trying to change folders on mapped/network mounted drives 😂
That's awesome! 😀 It’s a tricky problem that’s been hard for me to solve. Definitely let me know if you make any progress; I'd love to test it out!
Thanks for the updates since a year ago, when I last checked in :D
Reproducing the issue:
Request/Potential Solution: Would it be possible to call Refresh Cache by default, when a folder icon is changed? Or, just for ones that were already activated and customised previously, if that's more appropriate? If there's a reason that's too heavy a default for various setups (maybe Win11 doesn't require it?), could there be a preference/checkbox I could set so it becomes a users personal default?
System: OS: Windows 10, 22H2, Build 19045.5011