Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I change the icon of one of my HDDs in Windows 7, not using the autorun.inf trick? I'm trying to speed up my laptop for every day use as much as possible so I mapped my desktop to a RamDisk. I would like the ramdisk's icon to be the desktop icon, but since the ramdisk can't have any files in it while it is being initialized and autorun file would never run.

Are there any other ways to change the icon of a drive? Here is a screen shot of what I am talking about.

Here it is in my users folder. enter image description here

And in the my computer window. enter image description here

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

You can set the default icon in the Registry.

In RegEdit, open HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons. There may or may not be any subkeys.

Find or create a subkey(folder) with the drive letter as its name.

In that key, create a subkey(folder) named DefaultIcon. Change the (Default) value of the DefaultIcon key to the path of the icon you want to use.

i.e.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\Z\DefaultIcon]
@="C:\\Foo\\MyIcon.ico"
share|improve this answer
    
Worked like a charm. Thanks, mate. –  Keegan McCarthy Oct 31 '12 at 2:27
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.