VBScript Fundamentals

VBScript (short for Visual Basic Scripting Edition) is an easy-to-use scripting language developed by Microsoft that enables authors to create powerful tools using a subset of the Visual Basic language. VBScript is implemented as a fast, portable interpreter for use in web browsers and applications that use ActiveX controls and OLE Automation servers, such as Rhino.

If you already know Visual Basic or Visual Basic for Applications (VBA), VBScript will be very familiar. Even if you do not know Visual Basic, it should not take you long to get up-to-speed as VBScript is a relatively easy language to learn and use.

Fundamentals

The following is designed to provide the fundamentals of VBScript. For more detailed information on VBScript, see the resources listed below.

VBScript Data Types

VBScript Variables

VBScript Constants

VBScript Operators

VBScript Statements

VBScript Conditional Statements

VBScript Looping

VBScript Procedures

VBScript Coding Conventions

Resources

There are a number of resources that can help you get started with and learn more about VBScript. Here are a few that we like.

VBScript in a Nutshell, Second Edition, O'Reilly Media

VBScript Programmer's Reference, 2nd Edition, Wrox Press

VBScript User's Guide and Language Reference, Microsoft Corporation

TechNet Script Center, Microsoft Corporation