>Is there a way to make VFP wait until the "launch.exe" program terminates in the code shown? (Sort of like the way RUN works by default)
>
>DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
> INTEGER hwnd, ;
> STRING lpVerb, ;
> STRING lpFile, ;
> STRING lpParameters, ;
> STRING lpDirectory, ;
> LONG nShowCmd
>
>=Shellexecute(0,"Open","launch.exe","","F:\Develop\Tarma\iePoint2007CD\",0)
You cold use:
API_APPRUN in .VCX form Download #
9477Or you could use WSH:
oWSH = CREATEOBJECT([Wscript.Shell])
oWSH.Run([launch.exe],1,1)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.