Solved

STORING ICONS

Posted on 2015-02-12
8
107 Views
Last Modified: 2015-02-13
Hi,  I like to create and use my own ICONS for folder identification.  I store them in a separate folder and access that folder when doing an ICON change.  However,  they sometimes disappear especially on an external hard drive that I use to go from one PC to another.  I have also tried storing the ICON for a particular folder in that folder itself.  The disappearing act also happens this way from time to time.  The only ICONs that do not disappear are the ones from the Sytem root file.  This is true even when moving between WIN7 AND WIN8 PCs.   Since the the System ICONs are stored in a dll environment is there any way I can add my custom ICONs to them.  Any other suggestions as to how to keep my ICONS stable is also appreciated.  Thank You, Clarke
0
Comment
Question by:CLARKESR
  • 4
  • 3
8 Comments
 
LVL 51

Assisted Solution

by:Joe Winograd, EE MVE
Joe Winograd, EE MVE earned 450 total points
ID: 40606409
Hi Clarke,

I don't understand what is disappearing. Is it the folder that contains your own icons? Or do you mean the icon that you've placed on a folder — in other words, your own icon disappears from the folder and is replaced by the standard Windows folder icon?

If the former, I can't explain it; if the latter, then the reason may be that the folder lost its Read-only attribute (may especially be the case on your external hard drive). In order for a folder to show a custom icon (or a tooltip), it must be marked as Read-only in the file system. Also, note that it may take Windows/File Explorer (or any file manager) a minute or two to reflect the icon change — also true of a tooltip (InfoTip) change.

How are placing your own icon on a folder? I presume that it's by putting an IconFile= or IconResource= statement in the desktop.ini file, but if not, let me know how. Regards, Joe
0
 
LVL 13

Assisted Solution

by:William Fulks
William Fulks earned 50 total points
ID: 40606413
This may help. There's a hidden file called desktop.ini that stores that sort of thing. You'll have to leave copies of the icons on the external hard drive, but if scripted properly it should work on any Windows PC.

https://msdn.microsoft.com/en-us/library/windows/desktop/cc144102%28v=vs.85%29.aspx
0
 

Author Comment

by:CLARKESR
ID: 40606652
I am putting a new icon on a folder by going to the folders properties and choosing customize  and then change icon, which then displays the system's built in icons and then i select browse and go to my icon folder and select the icon i want.  then i click open, ok,apply, ok and the folder then has the new icon.
0
 
LVL 51

Accepted Solution

by:
Joe Winograd, EE MVE earned 450 total points
ID: 40606849
Here's the problem. What you're doing is creating a file called desktop.ini inside that folder. It is a plain text file that you can view in any text editor, such as Notepad (but it has the Hidden and System attributes, so you need to set the right Folder Options to see it). The technique you're using creates this line in desktop.ini:

IconResource=C:\YourIcons\CustomIcon.ico,0

When you move to a different computer, the C:\YourIcons folder isn't in that location (and, btw, it is marked Read-only). So Windows doesn't find it and so reverts to the standard Windows folder icon. Regards, Joe
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:CLARKESR
ID: 40606993
Ok,   i got it.  However,  what if I put the my icons folder in the same place on the different PCs , for example on the C drive, or does the icons folder have to actually be at the same internal address on the different PCs.
0
 
LVL 51

Assisted Solution

by:Joe Winograd, EE MVE
Joe Winograd, EE MVE earned 450 total points
ID: 40607141
> does the icons folder have to actually be at the same internal address

I don't know what you mean by "internal address". If you put your icons folder in the same folder location on different PCs — for example, in C:\MyIcons — then you'll see your custom icon if a folder is marked Read-only and has a desktop.ini file with, for example, this in it:

IconResource=C:\MyIcons\CustomIcon.ico,0

The above line is created by the technique you described in your earlier post. Regards, Joe
0
 

Author Comment

by:CLARKESR
ID: 40608578
MY THANKS FOR THE HELP, Regards, Clarke
0
 
LVL 51

Expert Comment

by:Joe Winograd, EE MVE
ID: 40608615
You're welcome. Happy to help. Regards, Joe
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
This video shows how use content aware, what it’s used for, and when to use it over other tools.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now