PowerBasic Museum 2020-A

IT-Consultant: Patrice Terrier => Useful TIPS => Topic started by: Patrice Terrier on May 11, 2007, 04:31:40 PM

Title: Tip - How to use a folder specific icon
Post by: Patrice Terrier on May 11, 2007, 04:31:40 PM
 
Using Windows Explorer you can setup the icon matching a specific folder.

This is made possible by using a desktop.ini ini file, and here is how to do it for your own application:


[.ShellClassInfo]
ConfirmFileOp=0
NoSharing=1
IconFile=MyIcon.ico
IconIndex=0
InfoTip=My dedicated folder.


Title: Re: Tip - How to use a folder specific icon
Post by: Ian Webling on September 02, 2008, 05:31:33 PM
Quote2 "MyIcon.ico" must be located in the same folder than the desktop.ini file

Not quite true.  As long as the full name is specified the icon can even reside in a .icl icon library file or a dll.  In addition the System attribute needs to be set on.
Title: Re: Tip - How to use a folder specific icon
Post by: Edwin Knoppert on September 02, 2008, 06:32:47 PM
What about a 2nd folder?
Title: Re: Tip - How to use a folder specific icon
Post by: Jürgen Huhn on January 04, 2009, 03:09:42 AM
On MS-Windows-NT 2000/XP/Vista you can set the Icon for a specific Folder,
simply by clicking the right Mousebutton over the Foldericon and selecting
the Proberty for the Folder in the Contextmenu of MS-Windows.
There you can select an Icon you like..
The System creates exactly the same Desktop.ini and set the Icon
you have selected!

;-D