Link to home
Start Free TrialLog in
Avatar of thcousins
thcousinsFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Change drive icons with autorun.inf and Shell32.dll

Hello Experts,

I am trying to change the drive icons using the following:

autorun.inf file in the root directory.

eg:

[autorun]
ICON=C:\WINDOWS\SYSTEM\SHELL32.DLL,4

The above works fine, until I change the last digit - (icon ref) to a number greater than 48

There are over 240 icons shown when I customise and icon, but I can only acees the first 48 via ICON= comand.

Am I missing something?

Many thanks
Avatar of xfreddie
xfreddie
Flag of Netherlands image

Hi
have you tried using the Registry??.

Click on the Start button and select Run. Type in regedit and press OK. Look for the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer

In the right pane right-click on an empty space and select New->Key. Name the new key DriveIcons. Now create another new key and name it C or the letter of the drive you are changing. Now, create one last key and name it DefaultIcon. And finally, rightclick on the Default key in the right pane and select Modify. Insert the full path and name where your icon is located followed by a comma then the icons index number (no spaces). Restart your computer and your hard drive icon should now be changed.

Goodluck,
Xfreddie
Avatar of thcousins

ASKER

Freddie, thanks for your response.

I alredy use the registry edit for Defaultname and DefaultILabel

The issue I have is with SHELL32.DLL. If you use a number larger than 48 to designate which icon to use, the icons fail to appear. 1 thru 48 work fine.
ASKER CERTIFIED SOLUTION
Avatar of thcousins
thcousins
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial