Interacting with a Script

VBScript provides two functions that enable you to interact with a script while it is running:

the InputBox function and the MsgBox function.

The InputBox function displays a dialog box with an input field. The value that is typed into the input field is returned. For example:

Dim users_string

users_string = InputBox ("text prompt", "title of the pop-up dialog _

  box", "default text for the input box")

The last two arguments to the function are optional.

The MsgBox function shows a message and returns a number based on the button the user presses. For example:

MsgBox ("message text")