Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WSScript vs ShellExecute
Message
 
To
03/02/2006 12:36:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01092991
Message ID:
01093645
Views:
33
>In general, all will do the same thing. The Wscript.Shell (run method) has a third parameter that informs it to wait until completed.
>
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/6f28899c-d653-4555-8a59-49640b0e32ea.asp
WScript has parameters (serprise - serprise!)- thanks a bunch - I needed the wait flag - I attempted "RUN" - but it returned VFP the clock a little too quickly. WS does a "real" wait!



>
>The Api_AppRun class has a method that does the same thing (LaunchAndWait).
>
>And the ShellExecute (even thought I fine it harder to control) can be informed to wait (but I have not tried it yet.)
>
>Overall, I generally use the API_AppRun class because of the flexibility, and it does not depend on an object (WScript) to be persent.
>
>Good luck.
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform