VBScript Tutorial

VBScript Tutorial

Microsoft VBScript (Visual Basic Script) is a general-purpose, lightweight and active scripting language developed by Microsoft that is modelled on Visual Basic. Nowadays, VBScript is the primary scripting language for Quick Test Professional (QTP), which is a test automation tool.

This tutorial will teach you how to use VbScript scripting language in your day-2-day life of any Web based or Automation project development.


This tutorial has been prepared for the beginners to help them understand basic-to-advanced functionality of VBScript. After completing, this tutorial you will find yourself at a moderate level of expertise in using Microsoft VBScript from where you can take yourself to next levels.


We assume you have a little knowledge of any computer programming and understand concepts like variables, constants, expression, statements, etc. If you have done programming in any client side language like Javascript, then it will be very much beneficial and learning VBScript will be like a fun for you.

Execute VBScript Online

For most of the examples given in this tutorial you will find Try it option, so just make use of this option to execute your VBScript programs at the spot and enjoy your learning.

Try following example using Try it option available at the top right corner of the below sample code box −

      <script language="vbscript" type="text/vbscript">
         document.write("Hello World!")