Solved

Change drive icons with autorun.inf and Shell32.dll

Posted on 2008-10-06
3
4,607 Views
Last Modified: 2008-10-14
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
0
Comment
Question by:thcousins
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 6

Expert Comment

by:xfreddie
ID: 22658591
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
0
 

Author Comment

by:thcousins
ID: 22658995
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.
0
 

Accepted Solution

by:
thcousins earned 0 total points
ID: 22677199
Solution:

It would appear that I was had a copy of Shell32.dll in the system folder and not the system32 folder.

Changing to system32 fixed the problem!

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

all works fine!
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let’s list some of the technologies that enable smooth teleworking. 
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question