1

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

3

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"
  • Worked like a charm. Thanks, mate. – Sponge Bob Oct 31 '12 at 2:27

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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