Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Waiting for Command Line Utility
Message
 
À
14/04/2006 03:52:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01113671
Message ID:
01113680
Vues:
22
This message has been marked as the solution to the initial question of the thread.
>Hi All. I want to run a command line (console) program and wait for it to complete before continuing with my app. I am using:
>
>
>oShell = CREATEOBJECT( 'WScript.Shell' )
>oShell.RUN( TRUN_CMD, .T. )
>
>
>I have used this same code to run other Windows apps and it works. Does this code also work correctly for running console apps / DOS apps? Just looking for confirmation that the technique is right for DOS apps as well.
>
>Thanks

Jon,
Thirth parameter is for waiting, second is for Window Style.
oShell = CREATEOBJECT( 'WScript.Shell' )
oShell.RUN( TRUN_CMD, 3, .T. )
And yes, you could use it for DOS applications.
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