>>I have a small secondary VFP application, (performs basic housekeeping), I want to run from a primary application with control immediately returning to the primary application after launching the secondary VFP application.
>>
>>The secondary application simply shuts down on completion.
>>
>>What's the best approach please?
>>
>>Dennis
>
>Dennis,
>Use ShellExecute. That way each app you launch would run independetly as if they're launched separately.
Actually, < shameless self-promotion > I'd recommend using API_APPRUN to do this < /shameless self-promotion >; it returns an hProcess which will allow you to modify the priority of execution and allows you to check on the completion state of the launched application. API_APPRUN can be downloaded from the Files Section.