Have you ever seen those weird desktop.ini files that seem to pop-up everywhere? The truth is that they do serve a purpose and Windows uses them to identify how a folder should be displayed, much like the .DS_Store files used in OS X.

When you create a new folder in Windows it is created with the standard folder icon, one common use of the desktop.ini file is to use to it set a custom icon for a folder, however this is not the only thing that it is used for. A typical desktop.ini will look like something like this:

[.ShellClassInfo]

ConfirmFileOp=0

IconFile=Folder.ico

IconIndex=0

InfoTip=Type Your InfoTip Here.

The desktop.ini file can contain alot of attributes but the following custom attributes are the most common:

  • ConfirmFileOp
  • IconFile
  • IconIndex
  • InfoTip

ConfirmFileOp

If set to 0, avoids the "You Are Deleting a System Folder" when deleting or moving a folder.

IconFile

Specify a custom icon file. You can use either a .ico, .exe or .dll file.

IconIndex

Specify the index for a custom icon. If the file assigned to IconFile only contains a single icon, the IconIndex should be set to 0.

InfoTip

A string of text that will be displayed when you hover over the folder.

As you can see the desktop.ini file holds folder customization information. They are hidden by default and will only be displayed if you choose to Display Protected Operating System Files by unchecking the checkbox.

sshot-3

You can customize your folders by creating your own desktop.ini folder in Notepad. Make sure to change the type to Unicode before saving though.