Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WSH not installed on Win95 and WinNT
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00392337
Message ID:
00392423
Views:
10
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform