>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.