Command Prompt for Windows




MSGBOX Example

Example:

To display a message box that contains an information icon, OK and Cancel buttons where the Cancel button is the default, enter at the command prompt :-

MSGBOX "Example" "A sample message box." 321

where the value 321 is calculated as 1 (OK and Cancel buttons) + 64 (Information icon) + 256 (Second button is the default).