Drive Icons


Recommended Posts

I found this on a newsgroup, they claimed this works for changing xp drive icons, does anyone know if this actualy works or not??

Also in XP it needs to be under the CurrentUser key. From PlatformSDK

Assigning a Custom Icon and Label to a Drive Letter

For Shell versions 4.71 and later, you can use the registry to replace the standard drive icon with a custom icon. With versions 5.0 and later, you can also add a custom label. Custom drive icons and labels are normally used for removable mass storage devices, such as tape drives, to allow users to easily distinguish them from their system's hard and floppy drives.

To replace the standard drive icon with a custom icon in Windows 2000, add a subkey named for the drive letter to HKEY_CURRENT_USERApplicationsExplorer.exeDrivesDriveIcons.

To replace the standard drive icon with a custom icon in all versions of Windows other than Windows 2000, add a subkey named for the drive letter to HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionExplorerDriveIcons.

The drive letter should not be followed by a colon (:). Add a DefaultIcon subkey to the drive letter subkey and set its default value to a string containing the location of the icon. The first part of the string contains the fully-qualified path of the icon's file. If there is more than one icon in the file, the path is followed by a comma, and then by the zero-based index of the icon. To add a custom label, add a DefaultLabel subkey to the drive letter subkey, and set its default value to a string containing the label.

The following example specifies a custom icon and label for the E: drive. The icon is in the C:MyDirMyDrive.exe file with a zero-based index of three.

Windows 2000

HKEY_CURRENT_USER

Applications

Explorer.exe

Drives

DriveIcons

E

DefaultIcon=C:MyDirMyDrive.exe,3

DefaultLabel="MyDrive"

All Other Versions of Windows

HKEY_LOCAL_MACHINE

Software

Microsoft

Windows

CurrentVersion

Explorer

DriveIcons

E

DefaultIcon=C:MyDirMyDrive.exe,3

DefaultLabel="MyDrive"

In all versions of Windows, if you change a file class or drive icon you must also call SHUpdateImage to notify the Shell to update any icons currently displayed.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.