>In my FPW 2.6 app it does a: RUN /N MYVFP.EXE
>Control is returned immediately to my FPW app, whereas MYVFP.exe can take a few seconds to run, and I only want to return to the calling App when my called App has finished. I tried putting a time delay in but this was not 100% satifactory as I am not quite sure how long the app will run for .. 3 seconds or 5 seconds or 7 seconds ......
>
>Is there any way of not returning to the calling APP until the called App has finished ?
Hi Gerard,
One way to accomplish this would be to have your fpw app create a dummy file in a specific directory, execute the run... command and then have a loop in the fpw that would wait until the dummy file is deleted.
Then have the child process delete that file ONLY after it's done with its task.
Once the dummy file is deleted your fpw app will continue running.
Alex
Low-carb diet not working? Try the Low-food diet instead!