Solved

Change drive icons with autorun.inf and Shell32.dll

Posted on 2008-10-06
3
4,575 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Clipboard Manager for Windows 7 5 65
Burning ISO Win/Mac 21 54
Company IT policies concerning licensing 4 75
Veriface disable 2 10
Today companies are subjected to more-and-more data, and it won't stop any time soon.  But there are obvious opportunities for reducing data, particularly data duplicated among companies.
A list of useful business intelligence software.
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.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

808 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