Windows Script Architecture
• Generally. js and. vbs
And other files
•
Executed by the corresponding Script Host/Engine
•
Generally, it is object-based. It calls a large number of script engines and functions in the script object model.
Windows Script Host
•
IIS: Web server script: inetinfo.exe
•
IE: Web client script: iexplore.exe
•
Wsh script (Windows Script Host): wscript.exe/cscript.exe
Windows Script Engine
•
Windows built-in Script Engine: JScript VBScript
• Third-Party Script Engine: perlscript Python
Windows Script Object Model
•
A set of objects that implement related functions
•
Wsh, WMI, ADSI, ADO, CDO
And so on.
What is the Windows Scripting host?
The Windows Scripting host is a language independent environment that exists on Windows based machines. It gives us the ability to write administrative scripts in varous scripting versions. By default, Windows ships with
Development environment for both VBScript and JScript, but you can install other runtime engines if you wish.
Once a runtime engine is installed, the Windows Scripting host will choose the appropriate engine for the script that is attempted to run. For VBScript, there are two script hosts: cscript.exe and wscript.exe. cscript.exe provides
Command line switches that enable you to supply arguments to modify the way your script runs. wscript.exe is the default Scripting Host and provides Windows based dialog boxes.
Write a script file by yourself, for example, Suffix:. vbs
Or. js files, and then in Windows
Lower
Double-click and execute it. Then, the system automatically calls an appropriate program to explain and execute it. The program is Windows Scripting host, and the program execution file name is wscript.exe.
(Cscript.exe if it is in the command line)