Getting started with vbscript

Download vbscript eBook

Remarks

VBScript (VBS) is a Visual Basic-flavored scripting language for Internet Explorer and Windows. It can be used on the web in principle, like JavaScript, but does not have much support, so it's usually confined to standalone or server-side scripts in business environments that use Windows exclusively.

Versions

VersionRelease Date
1.01996-08-13
2.01996-12-14
3.01997-10-01
4.01998-06-01
5.01999-03-01
5.11999-12-01
5.52000-07-01
5.62001-08-27
5.72006-10-18
5.82009-03-19

Hello World message using cscript and wscript

WScript.Echo "Hello world!"
 

This displays a message on the console if run with cscript.exe (the console host) or in a message box if run with wscript.exe (the GUI host).

If you're using VBScript as the server-side scripting language for a web page (for classic ASP, for example),

Response.Write "Hello world!"
 

puts the message into the HTML send to the client (browser).

If you want to displays a message in the message box, you can use:

 Msgbox "Hello World!"
 

Stats

110 Contributors: 7
Wednesday, March 22, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook