>Helo All,
>
>I am using ShellExecute() to Zip to disk (Dos command).
>However the message I have put after the ShellExecute() to inform the user when the process is completed is displayed even before the Zipping starts.
>How do i get around this embarassing Problem. I Use VFP 6.0
The ShellExecute() doesn't wait for application it launches to complete but returns control to VFP immediately. You can use
API_APPRUN in .VCX form File #
9477 to launch Zip program and wait for it completition. Or you can use WSH Run() method to do the same.
--sb--