vbscript

Getting started with vbscript

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!"

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow