>I am using the pkzip25 command line utility to unpack a
>zip file from within my application.
>
>Can someone help with the syntax for ShellExecute? One
>requirement is that I need to wait for the unzipping to
>be finished before the VFP processing continues.
>
Unfortunately, ShellExecute() doesn't provide a mechanism for this. You have several options:
(1) Use CreateProcess() and monitor the process handle for completion. This is what I do in API_APPRUN (download from the Files Section)
(2) Use ShellExecuteEx(), extract the process handle from the returned structure, and use the same basic process to monitor the process completion I use in API_APPRUN
(3) Instantiate the WSH Wscript.Shell object and use it's RUN method. It provides an option to wait on termination.