ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

IDEA: Drag and drop folder icon replacer

(1/7) > >>

Rockets:
First, a little bit of theory. What happens when a person sets a custom icon for a folder in Windows 7?
1. Attributes of a Folder change to Read-only (of the folder, NOT content!).
2. A hidden system file desktop.ini created inside that folder, which contains a link to the icon.

Possible app:
1. drag n drop folder
2. drag n drop icon
3. icon is copied to the folder, desktop.ini is created. ini and ico set hidden

desktop.ini content:
[.ShellClassInfo]
IconResource=mynewshinyicon.ico,0

or

[.ShellClassInfo]
IconIndex=0
iconfile=mynewshinyicon.ico

skwire:
First, a little bit of theory. What happens when a person sets a custom icon for a folder in Windows 7?
1. Attributes of a Folder change to Read-only (of the folder, NOT content!).-Rockets (July 17, 2016, 05:56 PM)
--- End quote ---

If I'm not mistaken, it's not the read-only attribute that's important; it's the System attribute that is necessary.


Possible app:
1. drag n drop folder
2. drag n drop icon
3. icon is copied to the folder, desktop.ini is created
-Rockets (July 17, 2016, 05:56 PM)
--- End quote ---

I can easily adapt my "MT Icon" Coding Snack for this.

Rockets:
That was a fast reply, I added "hidden" to 3.

Rockets:
I tried MT Icon. I like it, could u also modify it to change icon for all subfolders? Regardless empty or not. Like adding * to allowed filenames.

You were right:
The desktop.ini should have the attribute of system, and the folder containing it also needs to have the attribute of system for it to have an effect.

c.gingerich:
I can whip an app up like this if you still interested.

Navigation

[0] Message Index

[#] Next page

Go to full version