Windows Script Host is the Host/Execution Environment for different types of scripting languages. WSH officially supports VBScripts JavaScripts through(WScript,CScript). Different types of scripts can execute within the Host Environment with the help of respective Script Engine.
1. Windows Script Host
(WSH)
2011 - The Diary of Nostalgia
Instructor:
Arghodeep Paul
Firmware Engineer at BitBible Technologies Pvt. Ltd.
Content Author: Arghodeep Paul
License: OpenSource
Date: 10 July 2021
2. Introduction
Script:
A Script is nothing but a Source file containing Source Code which is written in a Light
Weight Programming Language. The Script looks like ordinary source files as C
File,Java File. The only thing which makes the difference is the execution of the script.
Script itself means only the Source File. It is not a compiled program or intermediate
code file(java .class file). It is similar like a python source file which needs the help of
a Runtime Environment(JVM,PVM) to be executed. So we can say scripting languages
are interpreted languages.
Scripting Language:
Scripting language and programming language make no difference. Their concepts
are same. The only difference is a scripting language is the implementation.
Practically a scripting language is intended for light weight tasks like Automation,
Hacking, Tinkering with the System object models. Whereas programming languages
have strong problem solving abilities. A programming language is a fully equipped
language with OOP support but most of the time scripting languages don’t support
full OOP concepts.
Application of Scripting Language:
Automation Task.
Provides interactivity.
Delivers Dynamic quality.
3. Windows Script Host (System Architecture):
Script Host is that Execution Environment or Runtime Environment for the Script.
Like JVM,PMV(these are for PLs). Scripting languages that are supported officially by
Windows are Batch Files(.bat), VisualBasic Script(.vbs), Javascript(.js). You can add
python also as a scripting language and additionally you will have to introduce the
python execution engine in association with WSH(Windows Script Host). It is a Team
work.
Text Editor
External
Programs
.bat
Object
Models / APIs
CMDShell
PowerShell
WScript
CScript
JS Engine
VB Engine
Py Engine
AutoIT Eng
AuParser
Object
Models / APIs
Object
Models / APIs
External
Programs
Object
Models / APIs
.js
.vbs
.py
This is the actual HOST
Environment. This
provides runtime for
different scripts
separately
.au3
These are provided by the
OS itself. Or a
Framework/SDK can be
installed separately.
This block represents the
Final Script Engines.
Engine will decide the
ultimate result.