Click here to Skip to main content
11,409,922 members (59,939 online)
Click here to Skip to main content

Changing Drive Icons in Windows 2000

, 15 May 2003 CPOL
Rate this:
Please Sign up or sign in to vote.
This article explains how to change the specified Drive Icon using VB 6. This is only tested with Windows 2000.
Sample screenshot

Introduction

This demo project explains how to change specified Drive Icon using VB6 in windows 2000 by manipulating the Registry. The demo project also includes a Module, explaining how to edit the registry using Registry API.

It allows to change the specified drive icon to the given path and also allows to revert back to the default icon of Windows.

For example: If you want to change Drive E icon, you need to create the Registry Value named:

HEKEY_LOCAL_MACHINE\software\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\E\
DefaultIcon\

When you create the above name key, it automatically creates a string named "Default".
Set its value to the path of the icon.

History

  • 15th May, 2003: Initial post

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

pampatipraveen

United States United States
No Biography provided

Comments and Discussions

 
Questionthanks sbro.... Pinmemberafdoal18-Sep-11 2:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150414.5 | Last Updated 16 May 2003
Article Copyright 2003 by pampatipraveen
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid