Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running Another App From Program
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00755896
Message ID:
00755912
Views:
12
>I am using Vfp6 and would like to run another Fpw26 exe to do some work on some older files. How do I stop my Vfp6 app from continueing while the old program is running ? Is this where I would use Shellexecute and what is the syntax ?
>TIA
>Cheers
>John



You can also use WSH and tell it to wait.
#define SW_SHOW_NORMAL 1
#define SW_SHOW_MINIMIZED 2
#define SW_SHOW_MAXIMIZED 3
oShell = createobject("WScript.Shell")
oShell.Run("myold.exe",SW_SHOW_NORMAL,.T.)   && or .F. for asynch - no wait


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform