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

DonationCoder.com Software > PublicDomainVic

AppFolderIcon - Sets icon from .exe files on their containing folder (v0.2.0)

(1/3) > >>

publicdomain:
AppFolderIcon
Sets icon from .exe files on their containing folder.







Made for kunkel321 from donationcoder.com.

Original thread: IDEA: Pull icon from exe and put on the containing folder

Source code: AppFolderIcon @ GitHub

Targets Microsoft .NET framework v4.5 (Native to Windows 8+)

Notes:

v0.2.0
[*]Instant application of changes.
    [*]New icon selection form.
    [*]Restore icon via API call.
    [*]Ratcliff/Obershelp as algorithm.
    [*]Works on top folders only.
[/list]
Day #177, Week #25 @ June 26, 2021

v0.1.0:
[*]Set folder icon for subdirectories.
    [*]Delete desktop.ini file recursively.
    [*]Always on top.
[/list]
Day #45, Week #06 @ February 14, 2021

==========


RELEASE SPONSORS:
[*]Jesse Reichler (A.K.A. Mouser from DonationCoder.com)
    [*]Kunkel321
    [*]Your name here? :)
[/list]
You may support this project by expressing your excitement in the form of a Donation via DonationCredits, Paypal @ www.paypal.me/victorvls or by becoming a Patron @ www.patreon.com/publicdomain.

Thanks & keep on rocking!

==========

Enjoy more weekly releases on the 1st, 7th, 14th and 21st @ https://publicdomainweekly.com

kunkel321:
Man this is awesome!  I have a back-up of my Portable Apps folder.  31 first level subfolders, but if you dig to the bottom of each directory, there are 333 of them.  It takes the AppFolderIcon between 2-3 seconds to process them.  Pretty good.  The algorithm does guess the names pretty good, but there are a couple of surprising misfires of the Levenshtein_distance math.  Do you want me to post them for fine-tuning purposes, or is this that can't really be adjusted anyway?

Also, what does the Delete inis command do?  I'm guessing that windows would just rebuild them...  So that command probably puts them all back to their defaults? 

publicdomain:
Do you want me to post them for fine-tuning purposes, or is this that can't really be adjusted anyway?-kunkel321 (February 15, 2021, 05:36 PM)
--- End quote ---

By all means post them! The idea is to have this program suit your needs/satisfy you in full! This way we also help others in need of the same functionality as well :)

Also, what does the Delete inis command do?  I'm guessing that windows would just rebuild them...  So that command probably puts them all back to their defaults?
-kunkel321 (February 15, 2021, 05:36 PM)
--- End quote ---

You guessed right. Windows resets them all back to folder defaults.

[...]it intelligently determines which exe file is the most likely to contain the desired icon image[...]
-kunkel321 (February 15, 2021, 05:17 PM)
--- End quote ---

There are three algos being used in succession:

- Levenshtein distance.
- Damerau-Levenshtein distance.
- Hamming distance.

(Source line)

We can do a new version with manual icon selection for the .exe names missed by the algorithms.

I'm thinking about a Graphical List with possible icons for single-click selection... Let's do this!
 :Thmbsup:
Vic

kunkel321:
I admire your dedication to the project!  But don't hard-code specific app names in there for me...  It would be bloat.   

Here is a screenshot of some of the misfires...  Actually I guess you could hard-code it to find "AutoHotkey." That is a fairly common app and lots of people probably have it.  The two Insofta apps are probably less common--don't bother with worrying about those.  As I was making the screenshot, I realized that "Insofta" is similar to "uninstall." No doubt that is what caused the error. 

Also, these are on a thumb drive, so I took the four bottom ones (which were skipped) and put them in a folder on my desktop just to see if it would make a difference.  AppFolderIcon can only see two of the folders(?) So that was weird.  I'll attempt to zip the folder and send if via PM. 

Other thoughts:  Maybe have it ignore any "Uninstall.exe?"  I notice (with my own setup at least) that the folder often has a version number, but the program exe often does not.  So maybe have it ignore numbers and the word "beta" or "version" in the folder name(???)  Not sure on that though...  EDIT: Maybe also ignore the word "portable." /

AppFolderIcon - Sets icon from .exe files on their containing folder (v0.2.0)

publicdomain:
We're finally getting to the new release of AppFolderIcon. Mod is a hybrid between suggested icon & manual selection.

(Releasing to the thread)

Navigation

[0] Message Index

[#] Next page

Go to full version