VB Script Basics
Vb Script tool : To Execute VB script we need not any tool all you need to write code in notepad and save it with .vbs extension .Double click the saved file to execute your code Variables : It is container and it is used for temporary storage in VBS only way to declare variable is Dim Syntax : Dim <Variable name> Example : Dim a,b,c a = 100 b = 200 c = 300 Note : Even though if you forget to declare variable you code will get execute . To avoid unwanted variables we need to declare Declare and Initialize Variable in single statement : We can declare and initialize variable in single statement by using " : " Syntax: Dim <Variable Name> : <Variable Name> = <Variable Value> Example : Dim a : a = 100 There are two ways to declare variable in VBs 1.Implicit declaration Ex : a = 100 2.Explicit declaration Ex : Dim a a = 100 Option Explicit : To avoid undeclared variables in code we use option explicit S...