2

Skype has a nice custom folder icon for the Skype folder in C:\Program Files.

How do you do register a custom icon for a specific windows (XP and up) folder?

xian
  • 4,657
  • 5
  • 34
  • 38
Mike Trader
  • 8,564
  • 13
  • 55
  • 66

3 Answers3

6

Customizing Folders with Desktop.ini

Paul
  • 13,042
  • 3
  • 41
  • 59
3

Take a look at Skype's desktop.ini. It's a hidden file, you might have to enable Show hidden files to see it.

Zr40
  • 1,910
  • 18
  • 20
  • [.ShellClassInfo] IconIndex=-910 IconFile=C:\Program Files\Skype\Phone\Skype.exe How do you register an icon? – Mike Trader Jul 12 '09 at 00:42
  • " Set this entry to specify the index for a custom icon. If the file assigned to IconFile only contains a single icon, set IconIndex to 0." An index where? How do I assign this an icon? – Mike Trader Jul 12 '09 at 00:48
  • .exe and .dll files can have several icons embedded. In this case you have to specify which of the icons to use with IconIndex. – Paul Jul 12 '09 at 00:53
1

There is no separate API to customize folders. But you could use WritePrivateProfileString and GetPrivateProfileString functions to manage desktop.ini file.

Kirill V. Lyadvinsky
  • 97,037
  • 24
  • 136
  • 212