How can I change the icon for drive letters? - 17 Feb 2000

John Savill

February 16, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. Windows 2000 lets you assign a different icon to drive letters. To do so, complete the following steps:

  1. Start the registry editor (regedit.exe).

  2. Move to HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorer.

  3. From the Edit menu, select New - Key. Enter the name DriveIcons.

  4. Select the new key, select New - Key, then enter the name of the drive (e.g., C).

  5. Select the created key, select New - Key, then enter the name DefaultIcon.

  6. Move to DefaultIcon, and double-click the (default) value.

  7. Set the default value to the DLL containing the icon and the icon number (e.g., icons.dll,-24 is icon 24 in icons.dll). Click OK.

  8. Close the registry editor.

You can click F5 (refresh) in Windows Explorer to show the new icons.

For example, here’s a DLL that contains a C and D icon that I created (ID 24 and 25, respectively) and a registry file that configures them on your machine.. To use the registry file, the icons.dll file would be at the root of C:, but you can easily change the registry file.

Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerDriveIcons]

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerDriveIconsC]

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerDriveIconsCDefaultIcon]
@="c:\icons.dll,-24"

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerDriveIconsD]

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerDriveIconsDDefaultIcon]
@="c:\icons.dll,-25"

Click here to view image

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like