Changing the Icons for Drives in the Explorer
The purpose of AutoRun files is to let Windows automatically install or run a CD-ROM when it is inserted into the drive. But the AutoRun files can also be used to change the drive icon used in the Explorer.
1. Create a file named AUTORUN.INF in the root directory of each hard disk or partition for which you want to customize the drive icon.
2. Insert a line with the text "[autorun]"
3. Insert a line immediately after the previous line, which contains the text "icon=" followed by the name of any executable (*.EXE) or dynamic link library (*.DLL) that contains icons. Follow the name by a comma and the zero based index of the desired icon in that file.
4. Save the AutoRun file. Open Explorer and press F5 to update the drive.
PIFMGR.DLL and SHELL32.DLLSHELL32.DLL are dynamic link libraries that contain lots of icons. You can preview the icons, by right clicking on any DOS program, choose Properties from the menu, select the Program tab and then press the Change Icon button. You will initially see a list of icons contained in PIFMGR.DLL. You can also preview icons by right clicking on any shortcut, choose Properties from the menu, select the Shortcut tab and then press the Change Icon button.
For example, to change the drive icon to the fifth icon in SHELL32.DLL the AUTORUN.INF file might look like this:
[autorun]
icon=c:\windows\system\shell32.dll,4