Create hyperlink/launch application with parameters

  • Hi,

    is there a possibility to create hyperlinks which will launch an application (exe) with additional parameters?

    Function SetLinkArea() does only allow the keyword "Launch://".

    Using it with the exe name (e.g., "Launch://C:\\WINDOWS\\notepad.exe") works so far.

    But adding paramters to the exe name (e.g., "Launch://C:\\WINDOWS\\notepad.exe C:\\Temp\\MyFile.txt") ends up with an error message that "C:\\WINDOWS\\notepad.exe C:\\Temp\\MyFile.txt" can't be found.

    I found out that there is an additional setting /P which can be added to the launch action embedded into the pdf. See https://stackoverflow.com/a/19455918


    Can I do this with wPDF in any way?

    Please note:

    • notepad.exe is just used to illustrate the issue here.
    • Yes, I know that Acrobat Reader has been changed not to open hyperlinks to exe files by default. Others do and even Acrobat does provide registry settings to allow it (and we require it just for internal puposes where the risk is known).

    Kind regards,

    Michael