>Hi,
>
>I have a Fox (6.0) application which calls another piece of software by using the standard RUN command. I need to halt the code until this external software has closed itself down, therefore I want to place a timer on my form to check intermitantly for the existence of the software.
>
>Is there a standard API method for checking for existence of an open window external to Fox? All I think I need is to find a function where I can pass the window name and have its file handle returned, or 0/-1 etc. if not found.
>
>Any help appreciated as always.
>
>Regards
>
Jeff,
Even easier would be to use the Windows Script Host's Shell object.
oShell = CREATEOBJECT("WScript.Shell")
oShell.Run(my.exe, 5, .T.)
Further details may be found in the series of articles the late Ed Rauh and I wrote for the VFUG Newsletter. The article covering the Shell appeared in Oct. 2000. All articles are available on-line at
www.vfug.org.
George
Ubi caritas et amor, deus ibi est