VBScript References Part 1...

[Display Standard Output]
Wscript.Echo "Hello Samson"


[Display to Message Box]
dim Msg
Msg=MsgBox("Hello Samson!",0,"VBS Example")
0 = (vbOKOnly) Ok button only


dim Msg
Msg=MsgBox("Hello Samson!",2,"VBS Example")
2 = (vbAbortRetryIgnore) Abort, Retry, & Ignore buttons


dim Msg
Msg=MsgBox("Hello Samson!",16,"VBS Example")
16 = (vbCritical) Critical message icon


Set WshShell = Wscript.CreateObject("Wscript.Shell")
WshShell.Popup "Hello Samson!",, "WshShell Popup"


Set WshShell = Wscript.CreateObject("Wscript.Shell")
WshShell.Popup "Hello Samson!",3, "Close in 3 secs",16
3 = Number of seconds to close, 16 = Critical message icon

2 comments:

Kids master May 1, 2021 at 11:46 AM

bro good work

Kids master May 1, 2021 at 11:46 AM

bro good work