Thursday, January 3, 2019

What is vbscript?

VBScript Intoduction

Vb script is a scripting language used for performing administrative tasks in system programming.
Vb script is a loosely typed language meaning we don't need to define the type of variables in vbscript.
It is used only on Microsoft operating system.

VBScript Applications

VbScript  is used in many places.
  1. In windows administrative tasks.
  2. In QTP as automation scripting language.
  3. In html pages as a client side scripting language.
  4. It is also used in embedded applications
  5. VBScript is also used as server side scripting language in native ASP pages with IIS Web Server.

How to execute VBScript

You can write and execute the vbscript programs on only Windows based machines. You can create the file with extension .vbs and then double click it to execute the code inside it. Below figures show how to do it on windows 7 machine.


Open Folder and Search Options




Uncheck hide extensions for known file types




Create a vbscript program in notepad and Save with .vbs extension.. Double click to Execute

Related Posts:

  • Types of Array in vb script Types of Array in vb script There are 2 types of arrays in vb script. Static(Fixed Size) Dynamic Static ArraysStatic array can contain fixed number of elements in array.Example -dim a (10) - This static array will … Read More
  • Error handling in VBScript Error handling in VBScript VBScript provides below statements and keywords to handle errors. on error resume next Err object - err.description, err.number Sample code to handle the error is given below If er… Read More
  • Classes in VBScript Classes in VBScript Here is an example that shows how we can create a class in QTP. Once we define the class, we can create its objects and then access its method and properties. 'declare the class book. Class Bo… Read More
  • Date time functions in vb script Date time functions in vb script It is very important that you know how to work with date and time in VBScript as most of the VBScript programs will have date and time involved in it.Below is the list of all date and … Read More
  • How we can define array in vb script How we can define array in vb script Arrays are used to store multiple values in the same variable.We can define array in vb script in 4 different ways. dim a(10)  - static array of 11 elements dim b()  … Read More

0 comments:

Post a Comment

Blog Archive

Translate

Popular Posts

Total Pageviews

151,321

Blog Archive