>Hi All,
>
>How can I customize the folder icon in Windows explorer to replace it with my app's icon?
>I suspect it's through shell.dll, but I don't know for sure.
>Thanks.
>
>Luke
>
>P.S. I'm with Dmitry. I've had it up to here with technology. When the last customer stops paying for support, I'll turn off the lights and walk away.
In the folder you like to change the icon, place a file desktop.ini looking like:
[.ShellClassInfo]
IconResource=Path-to-your-icon file,0
[ViewState]
Mode=
Vid=
FolderType=Generic
If you point to an exe, check the number.
In general, make hidden files visible, change the icon using the browsers property (ALT+Enter on the folder, last page, no idea how it is named in English), change icon to something (could be an exes resource too) and check the desktop.ini file for change.
Thanks Lutz. That worked. It worked better with the .exe. than the .ico.
Luke