Load shortcut target to a program on the DOpus toolbar?

I have this button on a toolbar:

cd "C:\Program Files\LibreOffice\program"
@async:"C:\Program Files\LibreOffice\program\swriter.exe" {filepath|noterm}

When I select a .DOCX file and then click on this button then Writer loads the selected file.

But when I select a shortcut .LNK pointing to the .DOCX file and then click the Writer button then Writer loads the binary data of the shortcut .LNK file instead of the original .DOCX document file where the shortcut is pointing to.

Is this the fault of the Writer program or can this be "healed" by the way DOpus passes the file to the program?

Add @resolvelinks on a new line at the top and it should work then.

Thanks. Is this correct?:

@resolvelinks
cd "C:\Program Files\LibreOffice\program"
@async:"C:\Program Files\LibreOffice\program\swriter.exe" {filepath|noterm}

It works.

Sounds correct in that case. :slight_smile:

To be very correct, this is not always the case.