Click here to Skip to main content
Licence CPOL
First Posted 15 May 2003
Views 39,322
Downloads 614
Bookmarked 10 times

Changing Drive Icons in Windows 2000

By | 15 May 2003 | Article
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)

About the Author

pampatipraveen



United States United States

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Questionthanks sbro.... Pinmemberafdoal1:38 18 Sep '11  

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.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120517.1 | Last Updated 16 May 2003
Article Copyright 2003 by pampatipraveen
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid