Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A Synchronous 'Run' command
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00509179
Message ID:
00509216
Views:
21
Gerard,

You won't be able to use the scripting host in FPW. You can maybe use ShellExecute() if you jump through all the API hoops calling it via FoxTools.FLL. I stopped using FPW years ago.

It's much easier to use a semaphore file. Delete it from inside FPW before you call the VFP code. Then go into a suspend loop waiting for the file to show up. The VFP code creates the file at the end of it's run, which will let your FPW code continue.

>I need to run a VFP application from within FPW, but want the FPW app to wait until the VFP app has finished. The 'RUN' command is asynchronous , so the minute it starts, control goes back to the FPW app.
>
>I've seen refernces here to Windows Shell scripting ,which might do the job, Has anybody any ideas of how this nmight work.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform