Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make ShellExecute wait for process to complete
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
00966017
Message ID:
00966267
Views:
28
Hi George
>oShell = CREATEOBJECT('WScript.Shell')
>oShell.Run('myexe.exe', 5, .T.)
>The "myexe.exe" should be replaced by the fully qualified path of the executable. 5 = SW_SHOWNORMAL and the .T. parameter indicates that the calling application should wait until the called application terminates.

That's short and sweet. I guess the parameters to be passed to the exe is included in the exe name string itself, right?

Always open to newer ideas. Thanks a lot for taking time out to respond, esp. after knowing I had settled for Ed's class.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform