0% found this document useful (0 votes)
98 views

Using Desktop - Ini Files: MSDN Home

You can customize the appearance and behavior of individual folders by creating a Desktop.ini file within the folder. The Desktop.ini file allows you to assign a custom icon, display informational text on hover, and disable sharing or deletion warnings for the folder. It contains section entries for properties like the custom icon file, icon index, and informational text tip. For example, a Desktop.ini file customized a Music folder with a unique icon and info text that appeared on hover.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views

Using Desktop - Ini Files: MSDN Home

You can customize the appearance and behavior of individual folders by creating a Desktop.ini file within the folder. The Desktop.ini file allows you to assign a custom icon, display informational text on hover, and disable sharing or deletion warnings for the folder. It contains section entries for properties like the custom icon file, icon index, and informational text tip. For example, a Desktop.ini file customized a Music folder with a unique icon and info text that appeared on hover.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Customizing Folders with Desktop.

ini
MSDN Home MSDN MSDN Library Design Tools Development Tools and Language Mobile and Embedded Developmen .NET Development Office Development Online Services Open Specifications patterns & practices Servers and Enterprise Develop Speech Technologies Web Development Windows Development 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.
q q

Switch View :

Classic Lightweight

ScriptFree

Feedback

Using Desktop.ini Files Creating a Desktop.ini File

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:
q

Use PathMakeSystemFolder to make the folder a system folder. This sets the readonly 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 ConfirmFileOp

Value Set this entry to 0 to avoid a "You Are Deleting a System Folder" warning when deleting or moving the folder. Not supported under Windows Vista or later. Set this entry to 1 to prevent the folder from being shared. 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. 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. 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.

NoSharing

IconFile

IconIndex

InfoTip

The following illustrations are of the Music folder with a custom Desktop.ini file. The folder now:
q q

q q

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:
Generated by www.PDFonFly.com at 7/14/2011 1:32:01 AM URL: http://msdn.microsoft.com/en-us/library/aa969337.aspx

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. Generated by www.PDFonFly.com at 7/14/2011 1:32:01 AM URL: http://msdn.microsoft.com/en-us/library/aa969337.aspx

[.ShellClassInfo] ConfirmFileOp=0 NoSharing=1 IconFile=Folder.ico IconIndex=0 InfoTip=Some sensible information.

Community Content
Customizing Folders with Desktop.ini
Reupertsland Take a look at this registry key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ comdlg32\PlacesBar Crouchie1998

Should be read only attribute, not system attribute

cesar2048

There says: "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", but to make a folder read-only, should be "attrib +r FolderName".

are there any other ways desktop.ini can

Flominator

add information to a folder? I'm trying to add comments (and or description) to a folder, so that when I View > Details, I can sort by comments. So far, it seems only a VB expert can do this. Are there any commands in the desktop.ini that can do this? With NTS partitions under XP you can add comments to files (Properties => File information) that you can display in details view. I didn't find a way to to this with folders, yet.

How to repair My Documents, My Music, My Pictures, My Videos folders in Windows XP?


Dear Microsoft.

rupertsland

How does one fix the left sidebar panel in the My Documents, My Music, My Pictures, and My Videos folders, such that the correct task options are listed for those folders in the sidebar panel. Currently, I have a "Music Tasks" block in the My Documents sidebar panel. I can not find any way to customize or change this back to the default tasks. Customizing the desktop.ini folder does not resolve the problem.
Generated by www.PDFonFly.com at 7/14/2011 1:32:01 AM URL: http://msdn.microsoft.com/en-us/library/aa969337.aspx6

3
2011 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement

Generated by www.PDFonFly.com at 7/14/2011 1:32:01 AM URL: http://msdn.microsoft.com/en-us/library/aa969337.aspx

You might also like