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:
00392449
Views:
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?
>

That's fine; it's a problem where multiple copies may exist, especially under Win2K where you are not certain about which copy is in use and how to find it. Since the registry always makes it clear, and allows you to base the decision on the provider (not all objects come from the WSCRIPT.EXE file; in fact, aside from the Wscript object itself, none come from WSCRIPT.EXE) in use, it's better to use the registry.

>Thanx,
>Charlie
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform