Windows Script Host (wsh) is a Windows management tool.
Wsh creates an environment for the host script. That is to say, when a script arrives on your computer, wsh acts as part of the host so that objects and services can be used for scripts and provide a series of script execution instructions. In addition, the Windows Script Host also manages security and calls the corresponding script engine.
For wsh-compatible script engines, wsh is language-independent. It provides a simple, powerful, and flexible script writing function for the Windows platform, allowing you to run scripts from the Windows desktop and command prompt.
The Windows Script Host is suitable for non-interactive scripting, such as script logon, script management, and computer automation.
Wsh objects and services
The Windows Script Host provides several objects for directly manipulating script execution, and provides the Helper function for other operations. With these objects and services, you can complete the following tasks:
- Print messages to the screen
- Run basic functions, such as Createobject and GetObject.
- MAP network drive
- Connect to the printer
- Retrieve and modify Environment Variables
- Modify registry key
Where is wsh located?
The Windows Script Host is embedded in Microsoft Windows 98, 2000, and Millennium Edition. If Windows 95 is running, you can download Windows Script Host 5.6 from the Microsoft Windows Script technology web site (http: // www.microsoft.com/china/scripting.