Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run and Wait
Message
 
À
22/01/2002 14:24:14
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00608551
Message ID:
00608579
Vues:
21
>>>What is the preferred method of running another program and waiting for it to complete. TIA
>>
>>Easiest would be the WScript.Shell's Run method. It requires that the Windows Script Host be installed
oShell = CREATEOBJECT("WScript.Shell")
>>* lcfile is either the application to run, or a
>>* file type associated with an application
>>oShell.Run(lcfile, 1, .T.) && Run in normal window and wait for termination
>
>George,
>
>Along this line... How could an automatic check be done as to what WSH the client has installed and then can it be installed for them during the deployment of an app?
>
Renoir,

Check the HKEY_CLASSES_ROOT hive in the registry for the existence of the VBScript.RegExp entry (Regular Expression parser). This will tell you two things, actually. If it isn't there, WSH 2.0 isn't installed. WSH 1.0 didn't have this object.

Don't get confusion with the version numbers, BTW. The Windows Script Host is at version 2.x. Many of the components, however, are at version 5.6 and you'll see this number referred to in most cases.
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