>Do this instead:
>cApp='d:\foldername\prgname.prg'
>
>Then run Shellexecute(). This will automatically cause Windows to run the cApp using VFP as long as '.prg' is a registered VFP extension.
Just one warning.
In Vfp6, when you would doubleclick on a PRG in the Windows Explorer, it would run the PRG in VFP6.
But in VFP7, it will open the PRG using MODI COMM so that you can edit it.
When the PRG is compiled, you will find a FXP file. When you doubleclick on that file, it will be executed, regardless of version 6 or 7 of VFP.
Regards,
Frank Camp