Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use ShellExecute to run a DOS progarm ?
Message
 
À
24/04/2013 03:30:39
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01571708
Message ID:
01571717
Vues:
67
>Hi,
>Then, how can I control the dos program run finish and return back to calling point and continue other
>processing ?
>
>Regards,
>Derek


You can try:
oWsh = CREATEOBJECT("WSCRIPT.Shell")
oWsh.Run("full path to your application", 0, 1) && The last parameter 1- Wait; 0 - no wait
But be careful Not on all computers Scripting is turned on.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform