Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WSScript vs ShellExecute
Message
 
À
03/02/2006 12:36:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01092991
Message ID:
01093645
Vues:
31
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform