VBScript
|
VBScript (short form of Microsoft Visual Basic Scripting Edition) is a subset of Visual Basic used in ASP and in Windows Scripting Host as a general-purpose scripting language. VBScript is often used as a replacement for DOS batch files.
VBScript is interpreted by a script engine, either ASP asp.dll in a web environment, wscript.exe in a Windows environment, and cscript.exe in a command-line environment.
Windows Scripting Host VBScript files typically have the file extension .vbs
.
Example program (to put into a file 'hello.vbs'):
MsgBox "Hello World!"
If the Windows Scripting Host is installed correctly and activated the program will run when the icon is double-clicked.
The VBScript version implemented in Internet Explorer is very similar in function to JavaScript; it has an interpreter that processes code embedded in HTML, and by itself cannot create stand-alone applications. It has virtually no compatibility with other web browsers, so many webmasters prefer to use JavaScript instead.
VBScript is also implemented in Microsoft Outlook as a script language used to respond to Outlook form events.
A few common VBScript applications are Microsoft Agent and Windows Update.
External links
- VBScript User's Guide (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vbstutor.asp)cs:VBScript
de:Visual Basic Script es:VBScript fr:VBScript it:VBScript ja:VBScript nl:Programmeertaal VBScript pl:VBScript sv:VBscript zh:VBScript