>Does anyone have code to pass parameters in the .exe command line to a running application.
>
>I want to include a link to the application in an e-mail and have the application start using the record seek info passed by the e-mail. And I need to account for the possibility that the application is already running. I can do this with PARAMETERS statement, but I also have a trap in the PRG to prevent a second instance of the program from starting. So now I have that trap "drop a turd" with the record search info using fcreate() and then I have a timer in the program file look for the turd every 2 seconds and go to that record. Crude but it works.
>
>Anyone have a better idea?
Take a look here
How to pass parameters to VFP exe
If it's not broken, fix it until it is.
My Blog