|
W S H
|
|
START | AD | DNS | FRAMES | W2000 | ISDN | SERVICES | PPP | IIS5 | VLANS | LDAP TECH | TCP/IP | VPN | DSL | HI TECH | NETMAN | OSI | SWITCH | DDNS | |
||
Web links
William Mohawk P.O. Box 1612 Santa Monica, CA 90406 (310) 585 - 2634 |
The
Microsoft Windows Script Host (WSH) is a tool that will allow you to run
Visual Basic Scripting Edition and JScript natively within the base
Operating System, either on Windows 95 or Windows NT 4.0. Using the
scripting languages you already know you can now write script to automate
common tasks, and to create powerful macros and logon scripts. For this neglected category of user, WSH is manna from heaven. WSH is a script-based environment that lets you use any script language compatible with the Windows Scripting engine (formerly known as the ActiveX Scripting engine) to write modern batch files. WSH is available as an accessory program with both Windows 98 and 2000 (make sure you check the right option before installation). You can also get WSH as an add-on for Windows 95 and NT4. Script files offer two major advantages over the MS-DOS batch file: they are written using a far richer language, and they can access COM automation objects. The former guarantees readability, easy maintenance and the ability to leverage your existing knowledge of scripting languages. The second point opens up a virtually unlimited world of possibilities. This means that any element in the Windows environment becomes manageable through WSH scripts once its functionality has been encapsulated as a COM automation object. This means you can access existing object models, such as ADO, Word, Excel, Shell, and of course the WSH object model itself. It also means you can access new object models you’ve created yourself. Writing a COM object which can be scripted from WSH doesn’t involve anything special: just create a standard Automation COM object using Visual Basic, MFC, ATL, Visual J++ or whatever takes your fancy. WSH
is implemented by two executables called wscript.exe and cscript.exe. The
former is a Win32 executable located in the Windows directory. The latter
is a Win32 console application that can be found in the \Windows\Command
folder. Both host the Windows Scripting engine and are capable of
understanding and interpreting VBScript and JScript code.
Click Start, point to Settings, and click Control Panel Double-click Add/Remove Programs Click the Windows Setup tab Double-click Accessories Scroll down, if necessary, and locate the Windows Scripting Host entry If it is in the Accessories list, select it and note whether it is checked or unchecked If it is not checked, it is not installed. Cancel all dialog boxes and close Control Panel If it is checked, uncheck it, click OK, and then click OK again. Close Control Panel.
|
Web Links
|