>>declare long ShellExecute in "shell32.dll" ;
>> long hwnd, string lpszOp, ;
>> string lpszFile, string lpszParams, ;
>> string lpszDir, long nShowCmd
>>
>>ShellExecute(0,'open','c:\mypath\myapp.exe',0,0,SW_SHOWMINIMIZED)Cetin
>
>I tried this and it doesn't work on either of my applications. They are top-level apps with a minimized button activated. I even tried sending a parameter to the EXE to set the WindowState in the Init and that hasn't worked.
David,
Something's happening within the app itself. I just completed an SDI application, and tried to use the method above, the Shell object from the WSH and the VFP RUN command and was able to start the application minimized in each case.
George
Ubi caritas et amor, deus ibi est