wrong forum for that question but hey, there is a simple solution. Just use the "old" RUN command which will do exactly what you want.
Sent by Sam Sengsavang on 03/13/2003 10:05:39 AM:
I developed my application in Visual FoxPro 6.0. I want it to use shellexecute to run "winzip32.exe" and wait until "winzip32.exe" finishes its job before the application continue processing. Here's my code...
LOCAL LNRETVAL, LCOPERATION
LCOPERATION = "Open"
DECLARE INTEGER ShellExecute IN SHELL32.DLL ;
LNRETVAL = SHELLEXECUTE(0, LCOPERATION, "Winzip",;
" -e "+m.FILENAME+" "+m.DESTDIR, "", 1)
This code is working but my FoxPro App. doesn't stop and wait for WinZip to finish its job.