Hello,
I have two input boxes, with both yes and cancel.
I would like to have the script quit, if the user does not enter any text into the input box or press cancel. Can I do this here is my code so far.
result1 = InputBox(Message1,Title)
result2 = InputBox(Message2,Title)
If result1 = 2 Then
WScript.Quit
Else
WScript.Echo Text2 & result1
'other commands here
End If
does inputbox, responsed like msgbox with 2 being cancel button was pressed.
Thanks,
Mike
I have two input boxes, with both yes and cancel.
I would like to have the script quit, if the user does not enter any text into the input box or press cancel. Can I do this here is my code so far.
result1 = InputBox(Message1,Title)
result2 = InputBox(Message2,Title)
If result1 = 2 Then
WScript.Quit
Else
WScript.Echo Text2 & result1
'other commands here
End If
does inputbox, responsed like msgbox with 2 being cancel button was pressed.
Thanks,
Mike