Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Is there a way to refresh/reload the shell/explorer to update file association icons like most installers do? I have done a little Googling, but all I found were articles on file association, that did not mention the details of doing this. Is it possible to make an API call or use PInvoke to get it to refresh the icons?
Posted

// Tell Explorer to refresh
SHChangeNotify(SHCNE_ASSOCCHANGED, 0, IntPtr.Zero, IntPtr.Zero);
 
Share this answer
 
This[^] provides a useful information on refreshing the explorer.
 
Share this answer
 
Comments
Matchlighter 19-Apr-11 23:17pm    
I'm afraid that didn't help. At least, it is not doing the same thing that an installer does when the Icons flash to a blank page and reload.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900