I need to launch some process (typically - another EXE) from VFP program, and wait until this process completes before moving to another command in VFP program. I am using ShellExecute command for this. It will not wait at the moment. How can I do ShellExecute command wait until called program finsih processing? Please help. Let me know if any other way i can do this?
DECLARE INTEGER ShellExecute IN shell32.dll ;
INTEGER hndWin, ;
STRING cAction, ;
STRING cFileName, ;
STRING cParams, ;
STRING cDir, ;
INTEGER nShowWin
DECLARE INTEGER ShellExecute IN shell32.dll ;
INTEGER hndWin, ;
STRING cAction, ;
STRING cFileName, ;
STRING cParams, ;
STRING cDir, ;
INTEGER nShowWin