>The ShellExecute works on my pc.
>
>here is my code in VFP:
>
>
>declare long ShellExecute in "shell32.dll" ;
> long hwnd, string lpszOp, ;
> string lpszFile, string lpszParams, ;
> string lpszDir, long nShowCmd
>
>ShellExecute(0,'Open','c:\temp\mytest.exe',0,0,1)
>
>
>I get no errors and the file test.txt is created.
It worked!!!??? OK. Would you make sure if that file is not a left over from running that exe in command window. Or:
? ShellExecute(0,'Open','c:\temp\mytest.exe',0,0,1)
If it prints over 32 it's fine (and I would start to think what could I have done for it not to work:)
Cetin