Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista file management

Vista - Change hard drive icon

Reply
 
Old 04-08-2007   #11 (permalink)
Ronnie Vernon MVP


 
 

Re: Change hard drive icon

David

Thanks, that helps.

--

Ronnie Vernon
Microsoft MVP
Windows Shell/User


<.> wrote in message news:e69dUCbeHHA.5044@TK2MSFTNGP05.phx.gbl...
http://www.mvps.org/serenitymacros/iconlist.html

Is stiched together screenshots of the change icon dialog in 98 (mostly the
same in Vista as they can't change old icons as it breaks other apps) and
how to work out the index from the change Icon dialog (you have to count
rows and columns, is 0 based)

Remember there are two ways of specifing icons, positive numbers is the nth
icon in the file and negative numbers is the files Resource Number (which is
a positive number, ignore the negative - it just means a resource number
rather than icon index).

It is very simple, the page exists so one didn't have to stuff about with
that dialog.

Shell32
This is a listing of common Windows icons. Add the number from the
horizontal and vertical axis to get the Icon Index.



"Ronnie Vernon MVP" <rv@invalid.org> wrote in message
news:1D02F28A-AB89-421B-89B0-7CB4491177F0@microsoft.com...
> Hi Keith,
>
> I have used this registry trick before to do this. The problem I always
> have
> is determining the number for the icon in the dll? Is there an easy way
> to
> do this?
>
> --
>
> Ronnie Vernon
> Microsoft MVP
> Windows Shell/User
>
>
> "Keith Miller MVP" <k.miller79@no.spam.verizon.net> wrote in message
> news:ONryAhSeHHA.1240@TK2MSFTNGP04.phx.gbl...
>> That icon is here:
>>
>> %SystemRoot%\system32\imageres.dll,-112
>>
>> autorun.inf doesn't seem to like that format, but the registry doesn't
>> mind:
>>
>> -------------------------
>> Windows Registry Editor Version 5.00
>>
>> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\DriveIcons\D\DefaultIcon]
>> @="%SystemRoot%\\system32\\imageres.dll,-112"
>>
>> --------------------------
>>
>> Copy the text between the lines & save as a .reg file, them merge into
>> the
>> registry. You'll need admin privledges to modify HKLM.
>>
>>
>> --
>> Good Luck,
>>
>> Keith
>> Microsoft MVP [Windows XP Shell/User]
>>
>> "Scott" <Scott@discussions.microsoft.com> wrote in message
>> news:AC4AA2D0-CB2B-4D83-908A-A18CC37D666C@microsoft.com...
>>> the picture here: http://img366.imageshack.us/img366/3231/foldermk3.jpg
>>> shows the typical "Documenten" folder.
>>> --
>>> Thank you
>>>
>>>
>>> "Ronnie Vernon MVP" wrote:
>>>
>>>> Scott
>>>>
>>>> You need to perform the following.
>>>>
>>>> 1. In the root of the drive where you want the icon to appear, rihgt
>>>> click
>>>> and select New/Folder. Name the folder Autorun.
>>>>
>>>> 2. Open Notepad and enter the following text.
>>>>
>>>> [autorun]
>>>> ICON=AUTORUN\xxxx.ICO
>>>>
>>>> Save this file with the name Autorun.INF and place it in the root
>>>> of
>>>> the drive.
>>>>
>>>> The xxxx is trhe name of the Icon file you wish to use.
>>>>
>>>> 3. Place this icon in the Autorun Folder that you created.
>>>>
>>>> The problem is finding the icon you wish to use. There are a lot of
>>>> different "document" icons in Vista. You may need to use an icon
>>>> extraction
>>>> utility to get a copy of this icon. What program is this icon
>>>> associated
>>>> with?
>>>>
>>>> There are many websites that have many, many icons that are free of
>>>> charge.
>>>> Just make sure that it is in the Windows .ICO format.
>>>>
>>>> Use Google to search for "free icons"
>>>>
>>>> --
>>>>
>>>> Ronnie Vernon
>>>> Microsoft MVP
>>>> Windows Shell/User
>>>>
>>>>
>>>> "Scott" <Scott@discussions.microsoft.com> wrote in message
>>>> news:1E0B3DAF-DDD0-4136-8C4E-7D787588CD22@microsoft.com...
>>>> >I use a seperate drive for all of my documents
>>>> > I want to use the Vista documents icon for that drive. Where can I -
>>>> > 1) find the document icon
>>>> > 2) change the hard drive icon to that one
>>>> >
>>>> > --
>>>> > Thank you
>>>>

>>

>



My System SpecsSystem Spec
Old 04-08-2007   #12 (permalink)
Scott


 
 

Re: Change hard drive icon

All right,
that was a home run!
Well done.
--
Thank you


"Keith Miller MVP" wrote:

> That icon is here:
>
> %SystemRoot%\system32\imageres.dll,-112
>
> autorun.inf doesn't seem to like that format, but the registry doesn't mind:
>
> -------------------------
> Windows Registry Editor Version 5.00
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\DriveIcons\D\DefaultIcon]
> @="%SystemRoot%\\system32\\imageres.dll,-112"
>
> --------------------------
>
> Copy the text between the lines & save as a .reg file, them merge into the
> registry. You'll need admin privledges to modify HKLM.
>
>
> --
> Good Luck,
>
> Keith
> Microsoft MVP [Windows XP Shell/User]
>
> "Scott" <Scott@discussions.microsoft.com> wrote in message
> news:AC4AA2D0-CB2B-4D83-908A-A18CC37D666C@microsoft.com...
> > the picture here: http://img366.imageshack.us/img366/3231/foldermk3.jpg
> > shows the typical "Documenten" folder.
> > --
> > Thank you
> >
> >
> > "Ronnie Vernon MVP" wrote:
> >
> >> Scott
> >>
> >> You need to perform the following.
> >>
> >> 1. In the root of the drive where you want the icon to appear, rihgt
> >> click
> >> and select New/Folder. Name the folder Autorun.
> >>
> >> 2. Open Notepad and enter the following text.
> >>
> >> [autorun]
> >> ICON=AUTORUN\xxxx.ICO
> >>
> >> Save this file with the name Autorun.INF and place it in the root of
> >> the drive.
> >>
> >> The xxxx is trhe name of the Icon file you wish to use.
> >>
> >> 3. Place this icon in the Autorun Folder that you created.
> >>
> >> The problem is finding the icon you wish to use. There are a lot of
> >> different "document" icons in Vista. You may need to use an icon
> >> extraction
> >> utility to get a copy of this icon. What program is this icon associated
> >> with?
> >>
> >> There are many websites that have many, many icons that are free of
> >> charge.
> >> Just make sure that it is in the Windows .ICO format.
> >>
> >> Use Google to search for "free icons"
> >>
> >> --
> >>
> >> Ronnie Vernon
> >> Microsoft MVP
> >> Windows Shell/User
> >>
> >>
> >> "Scott" <Scott@discussions.microsoft.com> wrote in message
> >> news:1E0B3DAF-DDD0-4136-8C4E-7D787588CD22@microsoft.com...
> >> >I use a seperate drive for all of my documents
> >> > I want to use the Vista documents icon for that drive. Where can I -
> >> > 1) find the document icon
> >> > 2) change the hard drive icon to that one
> >> >
> >> > --
> >> > Thank you
> >>

>
>

My System SpecsSystem Spec
Old 04-08-2007   #13 (permalink)
Keith Miller MVP


 
 

Re: Change hard drive icon

You're welcome. Keep having fun!


--
Good Luck,

Keith
Microsoft MVP [Windows XP Shell/User]

"Scott" <Scott@discussions.microsoft.com> wrote in message
news:414C3B03-D048-4A59-9139-E4ACF2163623@microsoft.com...
> All right,
> that was a home run!
> Well done.
> --
> Thank you
>
>
> "Keith Miller MVP" wrote:
>
>> That icon is here:
>>
>> %SystemRoot%\system32\imageres.dll,-112
>>
>> autorun.inf doesn't seem to like that format, but the registry doesn't
>> mind:
>>
>> -------------------------
>> Windows Registry Editor Version 5.00
>>
>> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\DriveIcons\D\DefaultIcon]
>> @="%SystemRoot%\\system32\\imageres.dll,-112"
>>
>> --------------------------
>>
>> Copy the text between the lines & save as a .reg file, them merge into
>> the
>> registry. You'll need admin privledges to modify HKLM.
>>
>>
>> --
>> Good Luck,
>>
>> Keith
>> Microsoft MVP [Windows XP Shell/User]
>>
>> "Scott" <Scott@discussions.microsoft.com> wrote in message
>> news:AC4AA2D0-CB2B-4D83-908A-A18CC37D666C@microsoft.com...
>> > the picture here: http://img366.imageshack.us/img366/3231/foldermk3.jpg
>> > shows the typical "Documenten" folder.
>> > --
>> > Thank you
>> >
>> >
>> > "Ronnie Vernon MVP" wrote:
>> >
>> >> Scott
>> >>
>> >> You need to perform the following.
>> >>
>> >> 1. In the root of the drive where you want the icon to appear, rihgt
>> >> click
>> >> and select New/Folder. Name the folder Autorun.
>> >>
>> >> 2. Open Notepad and enter the following text.
>> >>
>> >> [autorun]
>> >> ICON=AUTORUN\xxxx.ICO
>> >>
>> >> Save this file with the name Autorun.INF and place it in the root
>> >> of
>> >> the drive.
>> >>
>> >> The xxxx is trhe name of the Icon file you wish to use.
>> >>
>> >> 3. Place this icon in the Autorun Folder that you created.
>> >>
>> >> The problem is finding the icon you wish to use. There are a lot of
>> >> different "document" icons in Vista. You may need to use an icon
>> >> extraction
>> >> utility to get a copy of this icon. What program is this icon
>> >> associated
>> >> with?
>> >>
>> >> There are many websites that have many, many icons that are free of
>> >> charge.
>> >> Just make sure that it is in the Windows .ICO format.
>> >>
>> >> Use Google to search for "free icons"
>> >>
>> >> --
>> >>
>> >> Ronnie Vernon
>> >> Microsoft MVP
>> >> Windows Shell/User
>> >>
>> >>
>> >> "Scott" <Scott@discussions.microsoft.com> wrote in message
>> >> news:1E0B3DAF-DDD0-4136-8C4E-7D787588CD22@microsoft.com...
>> >> >I use a seperate drive for all of my documents
>> >> > I want to use the Vista documents icon for that drive. Where can
>> >> > I -
>> >> > 1) find the document icon
>> >> > 2) change the hard drive icon to that one
>> >> >
>> >> > --
>> >> > Thank you
>> >>

>>
>>


My System SpecsSystem Spec
Old 05-31-2008   #14 (permalink)
ChemKneazle


 
 

Re: Change hard drive icon


Wow, I'm bringing up a pretty old topic. Thank God for it, though
because it really helped me out! This was exactly what I needed...except
for one thing.

This trick worked perfectly for three of my external harddrives, but
not for my fourth. When I go to save the Autorun.INF file, it says "do
you want to overwrite this file...etc" and I click "Yes" like I did for
the other three but for this one, it says Autorun.INF is a read-only
file and that I can't save over it.

How can I overcome this?


--
ChemKneazle
Posted via http://www.vistaheads.com

My System SpecsSystem Spec
Old 05-31-2008   #15 (permalink)


Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

Re: Change hard drive icon

Quote  Quote: Originally Posted by ChemKneazle View Post
Wow, I'm bringing up a pretty old topic. Thank God for it, though
because it really helped me out! This was exactly what I needed...except
for one thing.

This trick worked perfectly for three of my external harddrives, but
not for my fourth. When I go to save the Autorun.INF file, it says "do
you want to overwrite this file...etc" and I click "Yes" like I did for
the other three but for this one, it says Autorun.INF is a read-only
file and that I can't save over it.

How can I overcome this?


--
ChemKneazle
Posted via Microsoft Windows Vista Community Forums - Vistaheads
Hi ChemKneazle,

You can use Method One or Method Two in this tutorial to change the drive icon to what you like instead.

Drive Icon Change

Hope this helps you,
Shawn
My System SpecsSystem Spec
Old 05-31-2008   #16 (permalink)
ChemKneazle


 
 

Re: Change hard drive icon


See, I think that would work for any regular old folder you wanted to
change, but this is a drive. (Also, my HDD icon I want to change is
currently that white w/colors icon that shows up when the link to its
original icon is broken or lost. It's definitely gone missing.) So when
I go to Properties, this is all I get under the Customize tab:

[image:
http://img.photobucket.com/albums/v6...operties2.jpg]

It's super-frustrating. I looked for the "Change Icon" button
EVERYWHERE! Then I found this thread - which worked 3/4 of the way.

Thanks, though.


--
ChemKneazle
Posted via http://www.vistaheads.com

My System SpecsSystem Spec
Old 05-31-2008   #17 (permalink)
Keith Miller \(MVP\)


 
 

Re: Change hard drive icon

From your first post, it sounds like an autorun.inf file already exists on
the drive (and has its read-only attribute set).

Open a command prompt window to the I drive and type:

attrib autorun.inf

You'll see something similar to:

C:\>attrib autorun.inf
A SHR C:\autorun.inf

then type: (ignore the 'A' attribute, but clear all the others)

attrib -s -h -r autorun.inf

Then:

del autorun.inf

You should then be able to save the new autorun.inf which specifies the icon
of your choice.


--
Good Luck,

Keith
Microsoft MVP [Windows Shell/User]



"ChemKneazle" <ChemKneazle.3a9gcg@xxxxxx-mx.forums.vistaheads.com> wrote in
message news:ChemKneazle.3a9gcg@xxxxxx-mx.forums.vistaheads.com...
Quote:

>
> See, I think that would work for any regular old folder you wanted to
> change, but this is a drive. (Also, my HDD icon I want to change is
> currently that white w/colors icon that shows up when the link to its
> original icon is broken or lost. It's definitely gone missing.) So when
> I go to Properties, this is all I get under the Customize tab:
>
> [image:
> http://img.photobucket.com/albums/v6...operties2.jpg]
>
> It's super-frustrating. I looked for the "Change Icon" button
> EVERYWHERE! Then I found this thread - which worked 3/4 of the way.
>
> Thanks, though.
>
>
> --
> ChemKneazle
> Posted via http://www.vistaheads.com
>
My System SpecsSystem Spec
Old 05-31-2008   #18 (permalink)
ChemKneazle


 
 

Re: Change hard drive icon


Sweet! That totally did it! Thanks, Keith!


--
ChemKneazle
Posted via http://www.vistaheads.com

My System SpecsSystem Spec
Old 06-01-2008   #19 (permalink)
Keith Miller \(MVP\)


 
 

Re: Change hard drive icon

You're welcome. Thanks for the feedback.

--
Good Luck,

Keith
Microsoft MVP [Windows Shell/User]



"ChemKneazle" <ChemKneazle.3aaf4a@xxxxxx-mx.forums.vistaheads.com> wrote in
message news:ChemKneazle.3aaf4a@xxxxxx-mx.forums.vistaheads.com...
Quote:

>
> Sweet! That totally did it! Thanks, Keith!
>
>
> --
> ChemKneazle
> Posted via http://www.vistaheads.com
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Drive Icon Change Tutorials
How To Change Icon Associated With Drive Vista General
missing hard drive C (local drive) icon Vista General
How can i change the icon of the drive Vista General
Rename Drive Label/Change Drive Icon Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46