When can I use program's short name for icon

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

When can I use program's short name for icon

Post by binocular222 »

Code: Select all

"Menu|Notepad" msg Hi //Notepad icon
"Menu|IExplore" msg Hi //IE icon
"Menu|Outlook" msg Hi //invalid icon although at %programfiles% as IExplore
"Menu|dxdiag" msg Hi //invalid icon although at the same location as Notepad -  %winsysnative%
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

admin
Site Admin
Posts: 66295
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: When can I use program's short name for icon

Post by admin »

It's the ProgID.

If the below registry path returns a valid file system path, you will get an icon (replace <ProgID>):

HKEY_CLASSES_ROOT\Applications\<ProgID>.exe\shell\open\command\(Standard)

Post Reply