Customizing folder icons

Log-in or register.

Customizing folder icons

Windows Explorer (and other file managers) can display a different icon for each folder. Customization can be simplified by specialized tools, but every folder can be also customized manually using resources available in default Windows installation.

The customization procedure varies for different kinds of folders:

Special folders

All versions of Windows since '95 allow users to customize the 5 standard icons: My Computer, My Documents, Network Neighborhood, and Recycle bin (empty and full). These icons are best changed from the Windows Control Panel.

When changing them in in registry, you'll find them here:

My computer
HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\DefaultIcon

Network neighborhood
HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\DefaultIcon

Recycle bin
HKEY_CLASSES_ROOT\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\DefaultIcon
use values named 'empty' and 'full' instead of the (Default) one

The values are set to path to a file with icon and the index or identifier of the icon inside the file.

%SystemRoot%\System32\imageres.dll,-109
-or-
C:\MyIcon\icon1.ico,0

The icon of My Documents folder is changed just like a standard folder icon:

Normal folders

Normal folders are folders made by users and root folders of hard drives, USB memory sticks, DVDs, CDs, floppies, etc. These folders can be customized by placing a Desktop.ini file to a folder and marking the folder with the read-only (system) attribute.

Example Desktop.ini:

[.ShellClassInfo]
IconFile=my_icon.ico
IconIndex=0

IconFile entry specifies the file with icon. It may be by an .ico file or an executable file (.dll, .exe, .ocx, .icl, ...) with multiple icons. The IconIndex field is used when the file contains more than one icon. If the value is greater or equal to 0, it specifies a zero-based index of the icon inside the file. If it is less than 0, the absolute value specifies icon's identifier in the executable file.

In some Desktop.ini files, you may use an IconResource entry:

IconResource=%SystemRoot%\system32\imageres.dll,-189

There is no documentation from Microsoft on this entry, but it seems to override the previous icon specification on Vista and combines the two values in one. If you are customizing a folder with this entry and if you want to use your own icon, you should delete this line.

The Desktop.ini file should have the hidden and system attributes and it may already exist in a folder. To display hidden files, go to Folder Options (accessible from menu or the Organize button in Explorer on Vista). Then let Explorer show hidden and system files as shown on the screenshot by the rsrc/red-border.png image.

rsrc/show-hidden-files.png image

The Desktop.ini file may contain other entries, which are not related to icons.

Explorer needs to be notified about the change to reflect it. Log out an in again.

Recent comments

user icon Anonymous on February 3rd 2015

That's nice, but to old as for me.
I'd mostly prefer using kinds of software. FolderMarker or smth.

user icon Anonymous on October 28th 2018

Not at all
Direct editing of "desktop.ini" files is the best and simpliest way to customize common folder..
It's very intuitive and You always know, what You do.. against of unknown tool, what are suspiciously big and untrustworthy.

user icon Henry vntv registered user on June 18th 2022

icon-image/24200-16x16x32.png image

user icon Anonymous
What about ICL files?
Vista & Win 7 icons