>>Hi,
>>Thanks, I filled the fourth parameter and it works.
>>It seems better to create Process than using ShellExecute. Am I right ?
>
>You'd have to ask Ed about this. From what I remember the last time he answered this question, CreateProcess gives you more control than ShellExecute. Most of all, I like the ...AndWait part.
ShellExecute() actually invokes CreateProcess() once it figures out what to launch; ShellExecute lets you launch a doc and trigger its associated app automagically via the registry; using CreateProcess() gives you back handles and IDs for the created process and thread, allowing you to track execution and operate synchronously (VFP is blocked until completion) or asynchronously (VFP runs in parallel.)