• Welcome to Theos PowerBasic Museum 2017.

News:

Attachments are only available to registered users.
Please register using your full, real name.

Main Menu

Tip - How to use a folder specific icon

Started by Patrice Terrier, May 11, 2007, 04:31:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Patrice Terrier

 
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:


  • 1 - Create the destop.ini file

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



  • 2 "MyIcon.ico" must be located in the same folder than the desktop.ini file
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Ian Webling

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.

Edwin Knoppert


Jürgen Huhn

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
.¸.•'´¯)¸.•'´¯)¸.•'´¯)¸.•'´¯)
¤ª"˜¨¨¯¯¨¨˜"ª¤....¤ ª"˜¨