New to vbscript and looking for simple help

DarkRukia

n00b
Joined
Aug 11, 2005
Messages
59
Ok so far I have the following:

intReply = MsgBox ("Your system has encountered a critical error, Windows will continue to shut down your system." , vbCritical + vbOKOnly ,"System Failure" )

And I want to follow up, so far this is the image that appears when you click the .vbs file

error7ip.jpg


Basically I want to learn how to make hitting the OK button follow up to do something such as open a program or even restart the computer.

I also want to make it so when you go to the file on a sites directory such as say the files name was Dan.vbs and when you go to the site/Dan.vbs instead of showing the text actually execute the pop up.
Can anyone help?
 
intReply = MsgBox ("Your system has encountered a critical error, Windows will continue to shut down your system." , vbCritical + vbOKOnly ,"System Failure" )

If intReply = 1 Then
...
Else

End If


You could echo the values to figure out how to use them:
WScript.echo intReply
 
Back
Top