Introduction to VBScript

Introduction to VBScript, What is VBScript?, Scripting Languages vs. Programming Languages, and VBScript Programming Fundamentals.

Introduction to VBScript

1. What is VBScript?
2. Scripting Languages versus Programming Languages
3. Usage of VBScript
4. VBScript Fundamentals and Features

1. What is VBScript?
  • Visual Basic Script (VBScript) is a component-based scripting language developed by Microsoft. It is a light version of Visual Basic with a fast interpreter for use on Microsoft platforms.
  • VBScripts use the Component Object Model (COM) to access the features of the environment where they are running. VBScripts are executed in the host environment.
  • VBScript consists of procedures, control structures, constants, variables, date/time functions, etc. Procedures are the main construct of a VBScript, which allows codes to be divided into small modules.
  • VBScript works like JavaScript, when used for client-side web development. It is also used for server-side processing of web pages, for example, the Microsoft Active Server Pages (ASP).
2. Scripting Languages versus Programming Languages

Many people use the terms scripting language and programming language interchangeably, but there are more distinctions between the two than you might realise. Although all scripting languages are programming languages, all programming languages are not scripting languages.

a. Scripting Languages:

Example: Shell Script, Perl, JavaScript, VBScript, Python, Ruby, Rexx, etc…

No Explicit declaration of Data Types, Ex: Dim a, b, c

Scripting Languages are Interpreter based languages.

Scripting Languages support Explicit and Implicit declaration of Variables.


Dim a
a = 100 ‘Explicit variable
b = 200 ‘Implicit variable
Msgbox a + b

Limited Support for Application development

Limited support for UI design.

Limited support for graphics design.

Scripting Languages Can be easily integrated with other technologies.

Scripting Languages Reduce the code size

b. Programming Languages:

Example: COBOL, C, C++, Java, VB, VC++, C# etc….

Programming Languages support Explicit Declaration of Data types only.


int a, char b, float c

Programming Languages are Compiler-based Languages.

Programming Languages support Explicit declaration of Variables only.

Rich support for Application development.

Rich support for UI design.

Rich support for Graphics design.

Difficult to integrate with other technologies.

Scripting Languages Increase the code size.

3. Usage of VBScript

a. Client-side scripting in the Web (HTML) (Browser-IE/Edge)

b. Server-side scripting in the web (ASP) (Web Server -IIS)

c. Network Administration on Server OS (WSH)

d. System Administration on Client OS or Server OS (WSH)

e) Test Automation (QTP/UFT)

4. VBScript Fundamentals and Features

1. Adding Comments
2. Implicit Declaration of Data Types
3. Explicit and Implicit Declaration of Variables
4. Constants
5. Operators
6. Decision making/Conditional Statements
7. Loop Statements
8. VBScript Functions (Built-in & User-defined)
9. Coding conventions
10. File System Operations
11. Excel Application Operations
12. Word Application operations
13. Database Operations
14. Dictionary Object
15. Regular Expressions
16. Error Handling,

1. Java Tutorial
2. Python Tutorial
3. VBScript Videos
Follow me on social media:

1 thought on “Introduction to VBScript”

Leave a Comment