When running a command on a lnk shortcut - resolve target path instead of sending .lnk location

When using DOpus commands to start external applications and editors for a selected file, attempting to execute a command on a .lnk shortcut to a file instead of an actual file itself sends the path to the shortcut as an argument.

C:\Test\SomeText.txt
D:\Test\LinkToText.lnk { target: C:\Test\SomeText.txt }

notepad.exe {filepath$} - Succeeds as notepad resolve the link itself and opens the target file.
honeyview.exe {filepath$} - Fails as it tries to open the .lnk shortcut as a file and nothing happens.

If there is no other way around this - could this be implemented as a {filepath$|targetsonly} modifier or something like that.

I'm using honeyview as an example but many other applications can't do anything when passed the lnk file as well.

You can use the @resolvelinks modifier for that.

1 Like

Silly me for not looking where I should have. Works like a charm. Many thanks for your help Jon.