Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Change drive icons with autorun.inf and Shell32.dll

Posted on 2008-10-06
3
Medium Priority
?
4,625 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
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Steps to fix “Unable to mount database. (hr=0x80004005, ec=1108)”.
Web hosting control panels were first developed to make it faster and easier for most users to set up and operate websites. The graphical user interface (GUI) allows users to perform tasks by pointing and clicking rather than typing highly specific…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
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…

824 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