Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Change drive icons with autorun.inf and Shell32.dll

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
Curious about the latest ransomware attack? Check out our timeline of events surrounding the spread of this new virus along with tips on how to mitigate the damage.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

670 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