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.