In addition, a title can be assigned to the pop-up message. If it is omitted, the default is “Windows Script Host”. The syntax is as follows: WshShell.Popup strText[,nSecondsToWait] [,strTitle] [,nType]

Arguments:

strText – String value containing the text you want to appear in the pop-up message box.nSecondsToWait – Optional. Numeric value indicating the maximum length of time (in seconds) you want the pop-up message box displayed.strTitle – Optional. String value containing the text you want to appear as the title of the pop-up message box.nType – Optional. Numeric value indicates the type of buttons and icons you want in the pop-up message box. These determine how the message box is used.IntButton – Integer value indicates the number of buttons the user clicked to dismiss the message box. This is the value returned by the Popup method

Button Types:

0 – Show OK button1 – Show OK and Cancel buttons2 – Show Abort, Retry, and Ignore buttons3 – Show Yes, No, and Cancel buttons4 – Show Yes and No buttons5 – Show Retry and Cancel buttons

Icons:

16 – Show “Stop Mark” icon32 – Show “Question Mark” icon48 – Show “Exclamation Mark” icon64 – Show “Information Mark” icon

intButton Return Codes:

1 – OK button2 – Cancel button3 – Abort button4 – Retry button5 – Ignore button6 – Yes button7 – No button

If the user does not click a button before nSecondsToWait seconds, intButton is set to -1.

Example: