Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows Host Scripting installed?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00838812
Message ID:
00839370
Views:
20
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform