Friday, 18 August 2017

VB Script Introduction


  • Vb Script stands for visual basic script.
  • It is developed by Microsoft.
  • It is a client side scripting language.
  • It comes by default with Operating system(windows).
  • Vb script is primary scripting language for QTP(Quick Test Proffessional),Which is an automation tool.
  • It is also used in AUTOCAD
  • As vb script is the scripting language it cannot run on its own,so we need programming language to host it.
  • Vb Script uses .vbs as extension.

Execution environment of Vb script:


we have 3 environments where VB Script can run.
  1. IIS (Internet Information Server) – Microsoft’s web server
  2. WSH (Windows Script Host)–The native hosting environment of  the Windows OS which is used mostly by Windows System administrators for automating  the Windows Desktop.
  3. IE (Internet Explorer)– The simplest hosting environment we can use to run VBScripts.

Features of Vb Script:


  • Vb script uses .vbs as extension.
  • VB Script is a light weight scripting language
  • VB Script is case insensitive. It has a very simple syntax, easy to learn and easy to implement.
  • It uses interpreter while execution.

Disadvantage of VB Script

  •  The main disadvantage of VB Script is that most browsers except Internet Explorer will not process VB Script code.
  • Means,if your site has visitors who use a web browser other than Internet Explorer like Chrome, Firefox  or Opera, then VBScript will not be useful.
  • Moreover, VBScript will not run on computers that run on operating systems other than Microsoft Windows including Linux, Mac etc.
  • Like any other scripting language, VBScript has gone through many changes over the years.
  • Now, VB Script is used as the default scripting language of ASP and QTP.

Editor for VB Script:

  • The default editor for Vb script is Notepad.
  • Vb script is saved with .vbs extension.
  • When we use notepad as editor WHS provide execution part.
  • As notepad doesn’t provide debugging We can also use other editors like notepad ++, editplus  as editor for vb script.

Click To know about Variables in Vb script 

No comments:

Post a Comment