HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Explorer\DriveIcons\
This registry key is usually empty for an unmodified Windows XP, since Windows determines the correct icon by examining the drive type. If you want to replace the icon of a drive you have to do the following:
- create a subkey under the above mentioned key using the letter of your drive as the name of the key (e.g. "G" for drive G
- within this new key you make a new registry entry of type "string" and call it "DefaultIcon" (without the quotation marks of course)
- you set this entry to a value containing the path to your icon file
This similarily work for the label of the drive: your name the key "DriveLabel" instead of "DriveIcon".
Hope this helps.
Leave a comment: