Customizing Folders with Desktop.ini
Customizing Folders with Desktop.ini
File system folders are commonly displayed with a standard icon and set of properties, which specify, for instance, whether or not the folder is shared. You can customize the appearance and behavior of an individual folder by creating a Desktop.ini file for that folder.
Using Desktop.ini Files
Folders are normally displayed with the standard folder icon. A common use of the Desktop.ini file is to assign a custom icon or thumbnail image to a folder. You can also use Desktop.ini to create an infotip that displays information about the folder and controls some aspects of the folder’s behavior, such as specifying localized names for the folder or items in the folder.
Use the following procedure to customize a folder’s style with Desktop.ini:
- Use PathMakeSystemFolder to make the folder a system folder. This sets the read-only bit on the folder to indicate that the special behavior reserved for Desktop.ini should be enabled. You can also make a folder a system folder from the command line by using attrib +s FolderName.
- Create a Desktop.ini file for the folder. You should mark it as hidden and system to ensure that it is hidden from normal users.
- Make sure the Desktop.ini file that you create is in the Unicode format. This is necessary to store the localized strings that can be displayed to users.
Creating a Desktop.ini File
The Desktop.ini file is a text file that allows you to specify how a file system folder is viewed. The [.ShellClassInfo] section, allows you to customize the folder’s view by assigning values to several entries:
| Entry | Value |
| ConfirmFileOp | Set this entry to 0 to avoid a “You Are Deleting a System Folder” warning when deleting or moving the folder. |
| NoSharing | Not supported under Windows Vista or later. Set this entry to 1 to prevent the folder from being shared. |
| IconFile | If you want to specify a custom icon for the folder, set this entry to the icon’s file name. The .ico file extension is preferred, but it is also possible to specify .bmp files, or .exe and .dll files that contain icons. If you use a relative path, the icon is available to people who view the folder over the network. You must also set the IconIndex entry. |
| IconIndex | Set this entry to specify the index for a custom icon. If the file assigned to IconFile only contains a single icon, set IconIndex to 0. |
| InfoTip | Set this entry to an informational text string. It is displayed as an infotip when the cursor hovers over the folder. If the user clicks the folder, the information text is displayed in the folder’s information block, below the standard information. |
The following illustrations are of the Music folder with a custom Desktop.ini file. The folder now:
- Has a custom icon.
- Does not display a “You Are Deleting a System Folder” warning if the folder is moved or deleted.
- Cannot be shared.
- Displays informational text when the cursor hovers over the folder.
The folder options in the following illustrations are set to show hidden files so that Desktop.ini is visible. The folder looks like this:

When the cursor hovers over the folder, the infotip is displayed.

The custom icon replaces the folder icon everywhere the folder name appears.

The following desktop.ini file was used to customize the Music folder, as seen in the preceding illustrations.
[.ShellClassInfo] ConfirmFileOp=0 NoSharing=1 IconFile=Folder.ico IconIndex=0 InfoTip=Some sensible information.
~ by grafikdesign on February 13, 2008.
Posted in Icon, windows xp
Tags: Ajax, application, Icon, PHP, Uncategorized, web, windows xp
11 Responses to “Customizing Folders with Desktop.ini”
Leave a Reply
Styleislam
Discover Islam
Recent Posts
- Better Typography
- Adobe CS4 “licensing for this product stopped working” error how to solution acrobat photoshop indesign
- Muslima Wallpaper Pack Free Download
- Vectoral Floral Custom Shapes for Adobe Photoshop Download
- How to Disable Deactivate Video Thumbnail Preview in Windows XP
Top Posts
- Free Mac OS X Icons Download
- Flv Codec for Windows Media Player Classic
- Install Leopard on your PC in One step!
- how do i install a .kext file?
- How To Save FLV File Flash Video From Firefox Cache Folder
- How to open animated gifs in Photoshop CS4
- Web 2.0 buttons for inspiration - Button Collection
- Ramadan with modern Graphics - Ramazan
- Photoshop Custom Shapes - Ornaments
- Ornament Brushes
Archives
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- October 2007
- September 2007
- August 2007
Web & Graphic Design
456 Berea Street
9 Rules
Aeiko
A List Apart
Bartelme Design
Authentic Boredom
Douglas Bowman
CSS Zen Garden
Depthcore
Design Melt Down
Devlounge
Digital Web Magazine
Evoke
Fadtastic
Fiftyfoureleven
FWA
Ideas on ideas
iQ Blog
Jason Santa Maria
Jeffrey Zeldman
Konect
Logo Pond
Moluv's Picks
N.Design Studio
Pixel Pusher
Probe 3
SimpleBits
Stylegala
Techcrunch
Veerle's Blog
CSS Showcases
Best Web Gallery
CSS Beauty
CSS Blast
CSS Bloom
CSS Clip
CSS Drive
CSS Elite
CSS Galleries
CSS Hazard
CSS Heaven
CSS Import
CSS Love
CSS Mania
CSS Princess
CSS Reboot
CSS Remix
CSS Thesis
CSS Tux
CSS Vault
CSS Website
The Daily Slurp
Dark Eye
Design Snack
Inspiration King
Netcocktail
One Pixel Army
Perfection
Refresh
Screenalicio.us
Screenfluent
Styleboost
Style Crunch
Submit CSS
Unmatched Style
W3C Sites
Web Creme
Graphical User Interface
4 Impressions
Afterglow
Customiz
David Lanham
Desktopography
DeviantArt
Enhanced Labs
E-SH
Everaldo
Florian Freundt
Hybrid Works
Icon Factory
Interface Lift
Jonas Rask
Laurent Baumann
Mandolux
MikWorks
Natobox
Nuance Group
Pixel Girl presents
Pixel Net
Rayform design
Rimshot design
Sascha Höhne
Stéphane Dely
Susumu Yoshida
Vanilla Soap
Wallpamac
Yellow Icon
Zyotism
Tools & Resources
Blog Stats
- 625,363 hits



thank you, guy
Very useful. Thanks.
This has been useful, thanks.
I have to ask, how do you have a folder.htt sort of thing in the MyData screenshots even although thisis XP?
It won’t work for me. Your steps are very precise…does the folder have to be the C:drive? I want the comments to show when I select the “Details” view…
Is it possible with the desktop.ini to change font color, size, and type for just one folder?
Sale kuch nahi janta hai…
Suggetion give kar raha hai ki problem
It does not appear to work on windows vista.
ow.. very cool man.. thanks.. I have a code for put a wallpaper in folder.
if u need just add me in msn danilo_lp@rock.com
Hi
This is a cross post of what is given in MSDN website.
You are really a very poor blogger!
thanks this is very usefull, but i want to know how to arrange the folder in desktop.ini