Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change Windows Explorer Default Drive Icons
#1
I recently created my own reg script to modify drive letter icons based on a tutorial I found at WindowsForums. The process over there was done through a lenghtly manual process of adding and editing the default value for specific keys in the registry, so I took the time to make my own automatic process for it.

I believe this works for XP, Vista, and Windows 7 from what i've read, but it does definitely work on my Windows 7 64 bit.

Preview:
[Image: isfWtLddJcQaQ.png]

Code:
Windows Registry Editor Version 5.00
;Note: This assumes that you have the specific ico mentioned for these values, so make
;sure you have the proper ones in their correct locations with the correct filenames.

;C, F, D, E

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\A\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\B\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

;[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\C\DefaultIcon]
;@="C:\\Windows\\drive_black.ico"

;[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\D\DefaultIcon]
;@="C:\\Windows\\drive_black.ico"

;[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\E\DefaultIcon]
;@="C:\\Windows\\drive_black.ico"

;[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\F\DefaultIcon]
;@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\G\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\H\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\I\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\J\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\K\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\L\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\M\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\N\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\O\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\P\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\Q\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\R\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\S\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\T\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\U\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\V\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\W\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\X\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\Y\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\Z\DefaultIcon]
@="C:\\Windows\\drive_black.ico"

The way this works is that it adds a (default) value for the key in 'DefaultIcon' for you, assuming that you have the ico file in the specific filepath that i've put in my script, otherwise you can change it's location if you want. I've placed mine in C:\Windows just because that makes it so that I'm less likely to delete, rename or move that ico file somewhere where it's no longer valid in the reg entry.

Save this script with the .reg file extension, right click on the file and choose 'Merge' to start the merge process into the registry for my script's values. Press OK to confirm the changes to the registry, open your 'My Computer' location to see the changes.

[Image: ibk4mEtJViIGSH.png]

[Image: iUkEa0SJQiDyS.png]

[Image: imb6rY1Ohbvkp.png]

I have commented out Drive's C, D, E, and F in my script with the ';' char because you may want to edit those values on your own. In my case those are the drives that get used the most by me, as C, D, and F are my fixed drives, and E is my CD-ROM/DVD drive, so I have specific icons for those drive letters. If you want to edit the icons used, make sure that you edit my filepaths in these lines with the path's of the icon files (ico) that you'll be using for the drive letter in the reg path above its line in my script.

Code:
@="C:\\Windows\\iconfile.ico"

Take note that this is editing the (default) registry value for the key in 'DefaultIcon' for the drive letter in the path above this line here:
"[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\N\DefaultIcon]"

Enjoy Smile
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to create Bootable Windows 7/8 USB drive JiniOnline 1 1,151 04-12-2014, 12:14 AM
Last Post: dtouch
  [TuT] Change Windows 7 ORB Style Braco22 11 2,383 04-11-2011, 07:35 PM
Last Post: Diabolic
  [Tutioral]How to change license name on any Windows(98,2000,ME,XP,Vista,7)[Pics] aggouras 3 1,441 03-20-2011, 07:31 AM
Last Post: aggouras
  Can't Partition Hard Drive Further. Win 8 2,993 12-22-2010, 10:32 AM
Last Post: MarkW7
  Change Drive Icon. Looks cool tech2game 0 777 11-15-2009, 11:53 PM
Last Post: tech2game

Forum Jump:


Users browsing this thread: 2 Guest(s)