Getting started with vbscript

Other topics

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.

Additional Info:

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

Contributors

Topic Id: 463

Example Ids: 1526

This site is not affiliated with any of the contributors.