You can use
API_APPRUN in .VCX form File #
9477 or WSH Run method
Re: Pls Help .. Mr.Ed Rauh's FAQ ID: 7789 , api_apprun Message #
888807>
>I USE winexec to lauch a programm. But i want that VFP Don't continue before the programm is not completed.
>it 's possible with winexec ?
>
>
>DECLARE INTEGER WinExec IN kernel32 STRING lpCmdLine, INTEGER nCmdShow
>* WinExec ( "G:\BOB\BOBLINK /CIE=BO /USR=BM /MOD=ACCOUNT /MNF=BOACCOUN.DB /AUTOCLOSE" , SW_NORMAL )
>*-- Sur le conseil de bOB
>cOldSetDefault = SYS(5) + CURDIR()
>SET DEFAULT TO ( goapp.cDirBobapp )
>WinExec( m.cValue , SW_NORMAL )
>
>
>
>thank in advance
>
>
>bernhart
--sb--