DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: minor alias problem with "/icon=wmp.ico" (relative icon path)  (Read 5,135 times)

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
On one Win10 PC FARR aliases with this kind of result line
Code
relative path | C:\a.txt /icon=wmp.ico
does not show the icon.

This happens even though the wmp.ico file exists in the same folder as the .alias file, namely
Code
C:\Users\<username>\Documents\DonationCoder\FindAndRunRobot\AliasGroups\MyCustom

Instead FARR shows this other icon
Code
C:\Program Files (x86)\FindAndRunRobot\Icons\console.ico

Screenshot:
rel.png

The exact same alias and icon works ok in FARR on another Win10 PC so this is something specific, though I haven't pinned down the cause yet.
edit: Happens on PC number 2 too after updating FARR on it to the latest latest beta , so perhaps this is a general issue with version 2.250?

Note that the wmp.ico is just an example. This issue happens with any icon, but the wmp.ico comes bundled with Win10 so might be useful if mouser or others want to reproduce/troubleshoot this on their PCs.

What does work:
1. Results lines with absolute paths to an icon files, like
Code
absolute path | C:\a.txt /icon=C:\test\wmp.ico
or even
Code
absolute path | C:\a.txt /icon=C:\Users\<username>\Documents\DonationCoder\FindAndRunRobot\AliasGroups\MyCustom\wmp.ico

abs.png

2. If I copy the icon to this location
Code
C:\Program Files (x86)\FindAndRunRobot\Icons\wmp.ico
and restart FARR then aliases with relative paths to the icon now shows the correct icon! That is this
Code
 relative path + icon in C:\Program Files (x86)\FindAndRunRobot\Icons | C:\a.txt /icon=wmp.ico 
shows this
rel_copied.png

So FARR on this PC appears to looks for relative path alias icons not next to the .alias file but in C:\Program Files (x86)\FindAndRunRobot\Icons

This is a minor issue - I can just use the absolute path icons as a workaround. But it seems undocumented and I found no setting to change it so worth making a post about.

edit: Relevant FARR help file page that documents the alias icon command
https://www.donationcoder.com/Software/Mouser/findrun/help/alias_tricks.htm
Quote
/icon=localfilename_from_aliasdir.ico (icon file must be in same dir as the source xml file defining the alias)
« Last Edit: October 10, 2020, 10:37 PM by Nod5 »

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
Re: minor alias problem with "/icon=wmp.ico" (relative icon path)
« Reply #1 on: October 10, 2020, 10:38 PM »
News: The issue happens on PC number 2 too after updating FARR on it to the latest latest beta , so perhaps this is a general issue with version 2.250? (Updated first post with this same info.)

Filipe Meira Castro

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 104
Re: minor alias problem with "/icon=wmp.ico" (relative icon path)
« Reply #2 on: October 11, 2020, 10:59 AM »
Two topics related with icons on the toolbar as well:

Fix: 01. Toolbar shortcut items with relative path are not showing the icon - "..\Winamp Lite\winamp.exe" launches winamp but it does not show the winamp.exe icon while "c:\sw\Winamp Lite\winamp.exe" does! (it does show relative path icons if FARR is restarted but it will remove them again when clicking "Configure Toolbar" and "OK")

Feature: 18. Toolbar shortcut items with custom icon - add option to select a specific icon instead of using the builtin .exe icon - could be handy to assign an icon to batch file as well!.

They are part of my wishlist for Farrv3, It's an old thread but 100% up to date!! heheheeh
https://www.donationcoder.com/forum/index.php?topic=36477#msg341347

Original address: https://www.donationcoder.com/forum/index.php?topic=50562.0