How to execute a VBScript Program
As discussed in above topic we can write VBScript in a HTML document and in a script file.
When we write a program in HTML document we will execute that by opening it in internet explorer. And when we write the VBScript programs in Script file we can execute it in 3 ways
1) by double clicking on the Script file
2) by using Wscript.exe
Wscript.exe is used to display output and receive input in Windows GUI format such as dialog and input boxes.
example:
c:\>wscript myfirstprogram.vbs
o/p:
3) by using Cscript.exe
Cscript.exe is used in a command-line environment.
example:
c:\>cscript myfirstprogram.vbs
hi
ReplyDelete