Assuming that questpdm.exe can be found in the windows search path (and you have created it as an exe) then you can just accept the parameter in the main .prg and do what you want with it.
As far as not starting another instance of the exe that's a bit more difficult... the problem is with passing in the parameter to the currently running .exe - Where do you pass it to? what if the user is in the middle of an edit.
I suppose the ideal would be to do something similar to other office tools...open another non modal form with a private DS
I would be tempted to use one of the tools to stop multiple instances of an .exe running but before it closes itself down it passes some kind of marker (maybe a file of record in a table) to the currently running app which could be picked up by a timer.
All this is off the top of my head.. but It sounds feasible to me!
HTH
>How could I do something like:
>
>In an email there is a link.
>
>c:\questpdm.exe /style-no-2898932
>
>
>So that when someone click on an email link the program can jump to that record
>or the program will be started if it is not started.
>
>I guess it is similar to the way that word works when you click a doc
>file but I would have to setup a file type or do something like that.
>
>
>Any ideas how this could be done?
Will Jones