Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WSH not installed on Win95 and WinNT
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00392337
Message ID:
00392423
Vues:
9
>Hi All:
>
>Everyone seems to recommend using the Registry to determine if WSH is installed. How about just searching for the existance of wscript.exe in the Windows directory?
>
>Thanx,
Charlie,

For one thing, the file could, within reason, be there, but not properly installed. Without the registry keys, it won't work. BTW, checking for one of the objects (Scripting.FileSystemObject) may not tell you the version. I have WSH 2.0 installed and the version showing in the HKEY_LOCAL_MACHINE\Software...key is 1.0. That's why I'd recommend simply checking for the VBScript.RegExp key. That object wasn't available prior to 2.0, and if that key isn't present, you'd want to install the latest version anyway.
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