Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute but wait for completion?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00354373
Message ID:
00354852
Views:
16
Works great on my PC with 98 on it. But scripting host is not on other PCs here. This is going to be used in a commercial financial package so has to run on anything.

Thanks anyway,

>Nigel,
>
>
* create an instance of the WSH Shell object
>local loShell
>loShell = createobject('wscript.shell')
>* 0 = minimised window for the command, .t. = wait for a return value
>lnResult = loShell.Run(m.lcCommandLine, 0, .t.)
>
>
>Cheers,
>
>Andrew
>

>>I need to call an old 16bit exe file so I'm using ShellExecute. The only problem is that I also need to wait for completion of this third-party executable before my VFP app can continue processing.
>>
>>Any ideas?
>>
>>TIA,
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform