Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows Host Scripting installed?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00838812
Message ID:
00839370
Vues:
22
>Hi all,
>
>Is there a simple way of determining if Windows Host Scripting is installed on a computer before it is called?
>
>Rex

Sure... You can just check to see if a COM object identifier that interfaces to it (like WScript.Shell) is registered. Use a function like IsActiveXReg at http://fox.wikis.com/wc.dll?Wiki~COMRegUnReg to check this.

that is:
IF IsActiveXReg( 'WScript.Shell')
  * Then WSH is installed.
ENDIF
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform