Alfredo said:
Hi. I have some time, looking the way of changing the icons of a flash
card
reader drives. I have the icons for each card type, even with colors when
the
card is inserted and in gray when there is no card. But I can find the
way
use this icons instead of the default drive icon of windows.
Thanks for the help.
I'm not certain about Flash cards, but presumably they're no different
from other removable drives. How are you doing the other
drive icons? There are at least three native ways of doing it, plus
numerous app-specific ways. Let's assume that your Flash
card's drive letter is W.
One way to do it is with the registry, with this key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons
key. Create a text file somewhere and give it a
.REG extension (eg: driveicons.reg). Place this in it:
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\W\DefaultIcon]
@="W:\myicon.ico"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\W\DefaultLabel]
@="My Flash card"
Of course you will want to change the W in the key to whatever your card's
drive letter is, change the icon name/location, and you
can edit or omit the label altogether if you want (if you use it, it is
displayed in the comments column of My Computer.)
Double-click it and merge it.
You can also do it with an AUTORUN.INF file located in the root of the
drive. Create a text file: W:\autorun.inf (again replace W
with your Flash card's drive letter.) Place this in it:
[Autorun]
icon=myicon.ico
label=My Flash card
Like before, you would edit the icon filename/location, and can edit or
omit the label. For this to work however, you will need
Autorun enabled on your system (Autorun, Autoplay's status doesn't
matter).
Another option is DESKTOP.INI. It's basically the same as AUTORUN.INF,
but slightly different. Create a text file: W:\desktop.ini
and place this in it:
[.ShellClassInfo]
IconFile=myicon.ico
IconIndex=0
Infotip=My Flash card
Again, edit the icon filename, and edit or omit the infotip.
You'll notice that the icon index is separate in desktop.ini whereas in
the other two methods it was part of the filename. If
instead of an .ICO file, you were using an icon library (.ICL, .EXE, .DLL,
etc.) where multiple icons are located in the file, you
would specify the specific icon by using the index. With desktop.ini, you
would set IconIndex to the index of the icon in the file
eg: IconIndex=13, and in the other two methods, you would append it to the
filename, eg: W:\myicons.dll,13
One or more of these should do the trick, but if not, you may have to
resort to a special handler. For example Microangelo allows
you to specify the icon for pretty much everything in Windows,
including-presumably-Flash card icons.
HTH