VB Scripting

Visual Basic Scripting (VBS) is a general-purpose scripting language created by Microsoft, primarily intended for system administration and automation. VB scripting can be embedded in such applications as Microsoft Office or Internet Explorer to modify their behavior or to handle user actions, and can also be used to schedule program execution at a later time.

VBScript currently runs on the below-mentioned environments:

  1. Internet Information Server (IIS) – It is a Microsoft web server.
  2. Windows Script Host(WSH) – It is a native hosting environment for the Windows operating system.
  3. Internet Explorer (IE) – It is the simplest hosting environment where we can run VBScript code.

Features of VB Scripting

  • VBScript is a lightweight scripting language, which has a lightning-fast interpreter.
  • VBScript, for the most part, is case insensitive. It has a very simple syntax, easy to learn and implement.
  • Unlike C++ or Java, VBScript is an object-based scripting language and NOT an Object-Oriented Programming language.
  • It uses Component Object Model (COM) in order to access the elements of the environment in which it is executing.
  • Successful execution of VBScript can happen only if it is executed in a Host Environment such as Internet Explorer (IE), Internet Information Services (IIS), and Windows Scripting Host (WSH)

How to make a VB Scripting?

  • Open your text editor and add the following lines of code.



       <title>VBScript Introduction</title>



         <!-- Paste VBScript Here -->



  • Paste the below code inside the body tag of your HTML code, or you can paste it inside the head tag.