Desktop.ini
What is DESKTOP.INI file? - DESKTOP.INI is a standard text file that can be added to any Windows folder to customize certain aspects of the folder's behaviour. Occasionally DESKTOP.INI is used by other programs for their own settings.
|
[.ShellClassInfo]
| CLSID = CLSID value | for creating system and special folders |
| CLSID2 = CLSID value | |
| UICLSID = CLSID value | |
| ConfirmFileOp = 0 |
no warning when doing file operations on a read-only or system folder (pre-XP) |
| NoSharing = 1 | prevents the folder from being shared (pre-XP) |
| Sharing = 1 | the folder is shared (XP) |
| IconFile = path | specifies an icon for the folder (ico, bmp, exe, dll, icl), eg.: c:\test.ico (pre-Vista) |
| IconIndex = number | specifies the index for an icon (0=first icon), if negative it's a resource ID (pre-Vista) |
| IconResource = path, number | specifies an icon for the folder, see IconFile and IconIndex (Vista) |
| InfoTip = text | text string or string ID in a resource module, eg.: @shell32.dll,-12689 |
| HTMLInfoTipFile = file://Comment.htt | HyperText file containing InfoTip string (pre-XP) |
| URL = http://www.download.com | for opening the folder as a web page (pre-XP) |
| Logo = file://C:\WINDOWS\clouds.bmp | small logo when you open the folder as a web page |
| WideLogo = file://C:\WINDOWS\clouds.bmp | large logo |
| LocalizedResourceName = @shell32.dll,-21765 | specifies a resource module and the string ID to use as the folder name |
| BuyURL = SamplePictures | link which opens when you click Buy Pictures in 'Sample Pictures' folder |
| http://windowsmedia.com/redir/xpsample.asp | |
| MusicBuyUrl = url | link which opens when you click Buy Music in 'Shared Music' folder |
| RunWizard = 1 | used when Windows creates a Briefcase folder |
| DefaultToFS = 0 | locks folder (?) used in some History folders |
| FolderType = string (see NOTE 1) | DEFAULT Folder Type if Show Common Tasks in Folders is selected |
| DefaultDropEffect = number (see NOTE 2) | default action when you 'Drag and Drop' files in the folder |
| EmpyText = ? | (Vista) |
NOTE 1:
| FolderType = | Documents |
| MyDocuments | |
| MyDocuments | |
| Pictures | |
| MyPictures | |
| PhotoAlbum | |
| Music | |
| MyMusic | |
| MusicArtist | |
| MusicAlbum | |
| Videos | |
| MyVideos | |
| VideoAlbum | |
| UseLegacyHTT | |
| CommonDocuments |
This works only if the Folder Type is not already placed in the registry. Place a Desktop.ini file with the FolderType entry in a
folder. In Explorer, choose Tools, Folder Options and click the View tab, click the button labeled Reset All Folders
NOTE 2:
| DefaultDropEffect = | 1 - Copy |
| 2 - Move | |
| 4 - Create a shortcut |
[ExtShellFolderViews]
| Default = {5984FFE0-28D4-11CF-AE66-08002B2E1262} | default view |
| {BE098140-A513-11D0-A3A4-00C04FD706EC} = {BE098140-A513-11D0-A3A4-00C04FD706EC} | folder settings |
| {8BEBB290-52D0-11d0-B7F4-00C04FD706EC} = {8BEBB290-52D0-11d0-B7F4-00C04FD706EC} | thumbnail view |
| {5984FFE0-28D4-11CF-AE66-08002B2E1262} = {5984FFE0-28D4-11CF-AE66-08002B2E1262} | web view |
[{5984FFE0-28D4-11CF-AE66-08002B2E1262}]
| PersistMoniker = file://template.htt | HyperText Template |
| WebViewTemplate.NT5 = ImgView.htt | |
| PersistMonikerPreview = \web\imgview.htt |
[{BE098140-A513-11D0-A3A4-00C04FD706EC}]
| Attributes = 1 | |
| IconArea_Image = C:\WINDOWS\clouds.bmp | background picture |
| IconArea_Text = 0x00000000 | text color |
| IconArea_TextBackground = 0x00000000 | background text color |
[{8BEBB290-52D0-11d0-B7F4-00C04FD706EC}]
| MenuName = T&humbnails | |
| ToolTipText = T&humbnails | |
| HelpText = Displays items using thumbnail view | status bar message |
| Attributes = 0x60000000 |
[Channel]
| CDFURL = http://www.iechannelguide.com/guide.cdf?loc=en_us | website |
| ScreenSaverURL = file://test.htm | URL of HTML page to display as screen saver |
| Logo = file://C:\WINDOWS\web\chang_sl.gif | small logo |
| WideLogo = file://C:\WINDOWS\web\chang_wl.gif | large logo |
| Icon = file://C:\WINDOWS\web\chang.ico |
[LocalizedFileNames]
| Windows-catalogus.lnk = @%SystemRoot%\system32\shell32.dll,-22075 | maps filenames to string values |
[Encryption]
| Disable = 1 | disables EFS encryption for the specified folder |
[DeleteOnCopy]
If you copy the desktop.ini to another location this section will not appear in the copied desktop.ini
| Owner = %username% |
if 'Owner' has a different name than the user's, the folder is labeled with a different user's logon name |
| Personalized = 5 | |
| PersonalizedName = My Documents |
means that without the desktop.ini file, the 'My Documents' folder would be called Documents |
[DeleteOnCopy.A]
same as [DeleteOnCopy] on non-English, non-Western systems (?)
[DeleteOnCopy.W]
same as [DeleteOnCopy] on non-English, non-Western systems (?)
[ViewState] - (Vista)
| Mode = ? | |
| Vid = ? | |
| FolderType = see under ShellClassInfo | |
| Logo = see under ShellClassInfo |
Downloads
- DESKTOPINI.ZIP (4 Kb) - Download above tables in TXT format
- DESKTOPINI-SEC.ZIP (4 Kb) - DESKTOP.INI security issues
- HTT.ZIP (144 Kb) - 50 HyperText Templates
- CUSTOMFOLDER.ZIP (1 Kb) - Visual Basic Script for creating folders and changing their icons by Steve Yandl
Tips
- DESKTOP.INI files can be exploited by viruses.
A well-known DESKTOP.INI virus is Redlof.A
Another one, W32/HLLP.Philis.ini, creates _DESKTOP.INI files.
So keep Windows up-to-date and use a good firewall and virusscanner.
- Derkeiler - SecurityFocus Bugtraq: Desktop.ini flaw results in executing folders.
- New Order - Paper on the HTML.Redlof.A virus
- Microsoft - Microsoft Security Bulletin MS03-027
- If a folder does NOT have a desktop.ini file, do the following:
Right click in an empty area of the folder
Click Properties
Click Customize tab
Click Change Icon button
Select the normal folder icon
Click Apply, OK
Now there is a DESKTOP.INI file
Delete the icon information and it's ready to use.
- Be careful when copying and deleting DESKTOP.INI files to and from WINDOWS SYSTEM folders.
- To delete DESKTOP.INI files:
attrib desktop.ini -h -s
del desktop.ini
- When DESKTOP.INI files open at startup, they are probably located in the startup folder of the startmenu.
DESKTOP.INI files are normally hidden, but not in this case.
So you have to set the hidden attribute on the DESKTOP.INI files.
Or when they are already hidden, go to "Folder Options" and make them invisible. (See below)
- DESKTOP.INI are hidden by default.
To show hidden files in Windows XP, do the following:
1. Double-click on the My Computer icon.
2. Select the "Tools" menu.
3. Click "Folder Options".
4. After the new window appears, select the "View" tab.
5. Put a checkmark in the checkbox labeled "Display the contents of system folders."
6. Under the "Hidden files and folders" section, select the button labeled "Show hidden files and folders".
7. Remove the checkmark from the checkbox labeled "Hide file extensions for known file types".
8. Remove the checkmark from the checkbox labeled "Hide protected operating system files".
9. Press the Apply button.
10. Press the "OK" button
11. Close "My Computer".
Windows Vista Examples
NOTE: These examples are from a Windows Vista system.
- Recycle Bin
[.ShellClassInfo]
CLSID={645FF040-5081-101B-9F08-00AA002F954E}
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-8964
- Contacts
[.ShellClassInfo]
LocalizedResourceName=@%CommonProgramFiles%\system\wab32res.dll,-10100
InfoTip=@%CommonProgramFiles%\system\wab32res.dll,-10200
IconResource=%SystemRoot%\system32\imageres.dll,-181
- Desktop
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21769
IconResource=%SystemRoot%\system32\imageres.dll,-183
- Documents
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21770
IconResource=%SystemRoot%\system32\imageres.dll,-112
IconFile=%SystemRoot%\system32\shell32.dll
IconIndex=-235
- Downloads
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21798
IconResource=%SystemRoot%\system32\imageres.dll,-184
- Favorites
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21796
IconResource=%SystemRoot%\system32\imageres.dll,-115
IconFile=%SystemRoot%\system32\shell32.dll
IconIndex=-173
- Links
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21810
IconResource=%SystemRoot%\system32\imageres.dll,-185
DefaultDropEffect=4
[LocalizedFileNames]
Public.lnk=@shell32.dll,-21816
Searches.lnk=@shell32.dll,-9031
Recently Changed.lnk=@shell32.dll,-32813
Music.lnk=@shell32.dll,-21790
Pictures.lnk=@shell32.dll,-21779
Documents.lnk=@shell32.dll,-21770
- Music
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21790
InfoTip=@%SystemRoot%\system32\shell32.dll,-12689
IconResource=%SystemRoot%\system32\imageres.dll,-108
IconFile=%SystemRoot%\system32\shell32.dll
IconIndex=-237
[LocalizedFileNames]
Sample Music.lnk=@%SystemRoot%\system32\shell32.dll,-21806
- Pictures
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21779
InfoTip=@%SystemRoot%\system32\shell32.dll,-12688
IconResource=%SystemRoot%\system32\imageres.dll,-113
IconFile=%SystemRoot%\system32\shell32.dll
IconIndex=-236
[LocalizedFileNames]
Sample Pictures.lnk=@%SystemRoot%\system32\shell32.dll,-21805
- Saved Games
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21814
IconResource=%SystemRoot%\system32\imageres.dll,-186
- Searches
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-9031
IconResource=%SystemRoot%\system32\imageres.dll,-18
[LocalizedFileNames]
Indexed Locations.search-ms=@shell32.dll,-32811
Everywhere.search-ms=@shell32.dll,-32814
Shared By Me.search-ms=@shell32.dll,-32802
Recent Music.search-ms=@shell32.dll,-32803
Recent Documents.search-ms=@shell32.dll,-32804
Recent Pictures and Videos.search-ms=@shell32.dll,-32806
Recent E-mail.search-ms=@shell32.dll,-32807
Recently Changed.search-ms=@shell32.dll,-32813
- Videos
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21791
InfoTip=@%SystemRoot%\system32\shell32.dll,-12690
IconResource=%SystemRoot%\system32\imageres.dll,-189
IconFile=%SystemRoot%\system32\shell32.dll
IconIndex=-238
[LocalizedFileNames]
Sample Videos.lnk=@%SystemRoot%\system32\shell32.dll,-21807
- Public Desktop
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21799
- Public Documents
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21801
IconResource=%SystemRoot%\system32\shell32.dll,-235
- Public Music
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21803
InfoTip=@%SystemRoot%\system32\shell32.dll,-12689
IconResource=%SystemRoot%\system32\shell32.dll,-237
- Public Pictures
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21802
InfoTip=@%SystemRoot%\system32\shell32.dll,-12688
IconResource=%SystemRoot%\system32\shell32.dll,-236
- Public Videos
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21804
InfoTip=@%SystemRoot%\system32\shell32.dll,-12690
IconResource=%SystemRoot%\system32\shell32.dll,-238
Windows XP Examples
NOTE: These examples are from a Windows XP Home system.
%username%=see C:\Documents and Settings\username
- My Documents
[DeleteOnCopy]
Owner=%username%
Personalized=5
PersonalizedName=My Documents
- My Pictures
[DeleteOnCopy]
Owner=%username%
Personalized=39
PersonalizedName=My Pictures
[.ShellClassInfo]
InfoTip=@Shell32.dll,-12688
IconFile=%SystemRoot%\System32\mydocs.dll
IconIndex=-101
- My Music
[DeleteOnCopy]
Owner=%username%
Personalized=13
PersonalizedName=My Music
[.ShellClassInfo]
InfoTip=@Shell32.dll,-12689
IconFile=%SystemRoot%\system32\shell32.dll
IconIndex=-237
- My Videos
[.ShellClassInfo]
InfoTip=@Shell32.dll,-12690
IconFile=%SystemRoot%\system32\SHELL32.dll
IconIndex=-238
[DeleteOnCopy]
Owner=#USER#
Personalized=14
PersonalizedName=My Videos
- Favorites
[.ShellClassInfo]
IconFile=%SystemRoot%\system32\shell32.dll
IconIndex=-173
LocalizedResourceName=@shell32.dll,-12693
- Shared Documents
[.ShellClassInfo]
LocalizedResourceName=@shell32.dll,-21785
- Shared Music
[.ShellClassInfo]
InfoTip=@Shell32.dll,-12689
IconFile=%SystemRoot%\system32\SHELL32.dll
IconIndex=-237
LocalizedResourceName=@shell32.dll,-28995
- Shared Pictures
[.ShellClassInfo]
InfoTip=@Shell32.dll,-12688
IconFile=%SystemRoot%\system32\mydocs.dll
IconIndex=-101
LocalizedResourceName=@shell32.dll,-28997
- Shared Videos
[.ShellClassInfo]
InfoTip=@Shell32.dll,-12690
IconFile=%SystemRoot%\system32\SHELL32.dll
IconIndex=-238
LocalizedResourceName=@shell32.dll,-28996
- Sample Pictures
[.ShellClassInfo]
BuyURL=SamplePictures
- Sample Playlists
[.ShellClassInfo]
LocalizedResourceName=@C:\WINDOWS\inf\unregmp2.exe,-161
- Sync Playlists
[.ShellClassInfo]
LocalizedResourceName=@C:\WINDOWS\inf\unregmp2.exe,-162
- Application Data
[.ShellClassInfo]
LocalizedResourceName=@shell32.dll,-21765
- Start Menu
[.ShellClassInfo]
LocalizedResourceName=@shell32.dll,-21786
- Local Settings
[.ShellClassInfo]
LocalizedResourceName=@shell32.dll,-21774
- Recent
[.ShellClassInfo]
InfoTip=@Shell32.dll,-12692
IconFile=%SystemRoot%\system32\shell32.dll
IconIndex=-21
LocalizedResourceName=@shell32.dll,-12691
- Fonts
[.ShellClassInfo]
UICLSID={BD84B380-8CA2-1069-AB1D-08000948F534}
- History
[.ShellClassInfo]
UICLSID={7BD29E00-76C1-11CF-9DD0-00A0C9034933}
CLSID={FF393560-C2A7-11CF-BFF4-444553540000}
- Temporary Internet Files
[.ShellClassInfo]
UICLSID={7BD29E00-76C1-11CF-9DD0-00A0C9034933}
- Cookies
[.ShellClassInfo]
UICLSID={7BD29E00-76C1-11CF-9DD0-00A0C9034933}
- Feeds Cache
[.ShellClassInfo]
UICLSID={7BD29E00-76C1-11CF-9DD0-00A0C9034933}
- Recycle Bin
[.ShellClassInfo]
CLSID={645FF040-5081-101B-9F08-00AA002F954E}
- Assembly
; ==++==
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; ==--==
[.ShellClassInfo]
CLSID={1D2680C9-0E2A-469d-B787-065558BC7D43}
ConfirmFileOp=1
InfoTip=Contains application stability information.
- Downloaded Program Files
[.ShellClassInfo]
CLSID={88C6C381-2E85-11d0-94DE-444553540000}
- Offline Web Pages
[.ShellClassInfo]
CLSID={F5175861-2688-11d0-9C5E-00AA00A45957}
- Tasks
[.ShellClassInfo]
CLSID={d6277990-4c6a-11cf-8d87-00aa0060f5bf}
- Briefcase
[.ShellClassInfo]
CLSID={85BBD920-42A0-1069-A2E4-08002B30309D}
ConfirmFileOp=0
Windows ME Examples
NOTE: These examples are from a Windows ME system.
- My Pictures
[ExtShellFolderViews]
Default={8BEBB290-52D0-11D0-B7F4-00C04FD706EC}
{8BEBB290-52D0-11D0-B7F4-00C04FD706EC}={8BEBB290-52D0-11D0-B7F4-00C04FD706EC}
{5984FFE0-28D4-11CF-AE66-08002B2E1262}={5984FFE0-28D4-11CF-AE66-08002B2E1262}
[{5984FFE0-28D4-11CF-AE66-08002B2E1262}]
WebViewTemplate.NT5=%WebDir%\ImgView.htt
[.ShellClassInfo]
IconFile=C:\WINDOWS\SYSTEM\MYDOCS.DLL
IconIndex=-101
Infotip=Stores and manages pictures
ConfirmFileOp=0
- Program Files
[ExtShellFolderViews]
Default={5984FFE0-28D4-11CF-AE66-08002B2E1262}
{5984FFE0-28D4-11CF-AE66-08002B2E1262}={5984FFE0-28D4-11CF-AE66-08002B2E1262}
[{5984FFE0-28D4-11CF-AE66-08002B2E1262}]
WebViewTemplate.NT5=file://Folder.htt
[.ShellClassInfo]
ConfirmFileOp=0
- Windows
[ExtShellFolderViews]
Default={5984FFE0-28D4-11CF-AE66-08002B2E1262}
{5984FFE0-28D4-11CF-AE66-08002B2E1262}={5984FFE0-28D4-11CF-AE66-08002B2E1262}
[{5984FFE0-28D4-11CF-AE66-08002B2E1262}]
WebViewTemplate.NT5=file://Folder.htt
[.ShellClassInfo]
ConfirmFileOp=0
- Downloaded Program Files
[.ShellClassInfo]
CLSID={88C6C381-2E85-11d0-94DE-444553540000}
- Favorites
[.ShellClassInfo]
CLSID2={1A9BA3A0-143A-11CF-8350-444553540000}
ConfirmFileOp=0
- Fonts
[.ShellClassInfo]
UICLSID={BD84B380-8CA2-1069-AB1D-08000948F534}
- History
[.ShellClassInfo]
UICLSID={7BD29E00-76C1-11CF-9DD0-00A0C9034933}
CLSID={FF393560-C2A7-11CF-BFF4-444553540000}
- Offline Web Pages
[.ShellClassInfo]
CLSID={F5175861-2688-11d0-9C5E-00AA00A45957}
- Recent
[.ShellClassInfo]
IconFile=C:\WINDOWS\SYSTEM\shdocvw.dll
IconIndex=-20785
Infotip=History Folder
ConfirmFileOp=0
- Windows\System
[ExtShellFolderViews]
Default={5984FFE0-28D4-11CF-AE66-08002B2E1262}
{5984FFE0-28D4-11CF-AE66-08002B2E1262}={5984FFE0-28D4-11CF-AE66-08002B2E1262}
[{5984FFE0-28D4-11CF-AE66-08002B2E1262}]
WebViewTemplate.NT5=file://Folder.htt
[.ShellClassInfo]
ConfirmFileOp=0
- Tasks
[.ShellClassInfo]
CLSID={d6277990-4c6a-11cf-8d87-00aa0060f5bf}
- Temporary Internet files
[.ShellClassInfo]
UICLSID={7BD29E00-76C1-11CF-9DD0-00A0C9034933}
Windows 95 Examples
NOTE: These examples are from a Windows 95 system.
- Recycle Bin
[.ShellClassInfo]
CLSID={645FF040-5081-101B-9F08-00AA002F954E}
- Downloaded Program Files
[.ShellClassInfo]
CLSID={88C6C381-2E85-11d0-94DE-444553540000}
- Favorites
[ExtShellFolderViews]
{5984FFE0-28D4-11CF-AE66-08002B2E1262}=%windir%\web\favorite.htm
[.ShellClassInfo]
CLSID={1A9BA3A0-143A-11CF-8350-444553540000}
- Favorites\Channels
[.ShellClassInfo]
IconFile=C:\WINDOWS\SYSTEM\CDFVIEW.DLL
IconIndex=-8196
ConfirmFileOp=0
- Favorites\Software Updates
[.ShellClassInfo]
IconFile=C:\WINDOWS\SYSTEM\CDFVIEW.DLL
IconIndex=-8196
ConfirmFileOp=0
- Fonts
[.ShellClassInfo]
UICLSID={BD84B380-8CA2-1069-AB1D-08000948F534}
IconFile=c:\windows\system\fontext.dll
IconIndex=0
- History
[.ShellClassInfo]
UICLSID={7BD29E00-76C1-11CF-9DD0-00A0C9034933}
CLSID={FF393560-C2A7-11CF-BFF4-444553540000}
- Offline Web Pages
[.ShellClassInfo]
CLSID={F5175861-2688-11d0-9C5E-00AA00A45957}
- Tasks
[.ShellClassInfo]
CLSID={d6277990-4c6a-11cf-8d87-00aa0060f5bf}
- Temporary Internet Files
[.ShellClassInfo]
UICLSID={7BD29E00-76C1-11CF-9DD0-00A0C9034933}
DESKTOP.INI Utilities
SOFTWARE
- Folder Tweaker - Change the icon and the background image of your folders within seconds.
- IColorFolder - With iColorFolder, customize the color of each WindowsXP folder.
- Folderico - Allows to change icons of the chosen folder to any chosen by you.
- Windowpaper XP - With Windowspaper XP, you can put wallpaper in the back of any window - just like your desktop.
- Change Folder Icons - Change standard icon of a folder to any other icon. (Shareware)
- Folder Marker - Change folder icon or color by one mouse click. (Shareware)
ICONS
- Folder Icons - Coloring Windows Folders with Custom Icons
CODE
- VBS Scripts - Icon Any Folder & Icon Start Menu
- The Code Project - Create Icons for Folders in Windows Explorer, Using C#
- SetFolderIcon - Associate an icon to a folder (VB5, VB6)
Links
- Desktop.ini Forum - Ask your Desktop.ini questions
- Microsoft - Customizing Folders with Desktop.ini
- RegistryLord - Customizing your Computer in Desktop.ini (Text file)
- Douglas Thrift - Windows XP FAQ