Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anything besides Run
Message
 
À
15/10/2001 19:25:07
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00568844
Message ID:
00568976
Vues:
17
>Is there any way to get this code to keep from displaying the dos window and still wait until process is complete?
>Run /2 D:\ccdraft\bin\ccplot.exe -rk tempjan.bat
>
>I have tried the api_apprun but I still can't get the process to finish before my rename command kicks in.
>
>Thanks

Steven,

Here's the documentation for the WScript.Shell object.
Runs a program in a new process.

object.Run(strCommand, [intWindowStyle], [bWaitOnReturn]) 
Arguments
object 
WshShell object. 
strCommand 
String value indicating the command line you want to run. You must include any parameters you want to pass to the executable file. 
intWindowStyle 
Optional. Integer value indicating the appearance of the program's window. Note that not all programs make use of this information. 
bWaitOnReturn 
Optional. Boolean value indicating whether the script should wait for the program to finish executing before continuing to the next statement in your script. If set to true, script execution halts until the program finishes, and Run returns any error code returned by the program (0 for success). If set to false (the default), the Run method returns immediately after starting the program, automatically returning 0 (not to be interpreted as an error code).
The values for intWindowstyle are the same as for the RUN command in VFP.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform