views:

584

answers:

3

What is the difference between VB and VBScript?

+2  A: 

VBScript is a variety of VB, just as VB6, VBA, and VB.NET are. They're all different, some of them dramatically so.

Shog9
+6  A: 

VB is a full-fledged programming language which can be used to create compiled applications, while VBScript is a sub-set of VB and is a scripting language that can be used to run a set of commands, similar to an old-school DOS batch file. Generally, a scripting language can not be used to create a full-fledged binary application and it can not be compiled down to a executable binary file.

Muad'Dib
+1  A: 

VBScript is a "lightweight" subset of Visual Basic with limited syntax that is used for scripting purposes (like routine task automation) rather than application development.

While Visual Basic code is compiled into binary executables, VBScript code is interpreted and runs within a host environment (e.g. Windows Script Host or Internet Explorer).

Helen