MsgBox


Description
The program displays the formatted text in a message box and return the button ID.

Usage
MsgBox.exe "Message text..." [buttons]
With buttons:
  0 = OK
  1 = OK and Cancel
  2 = Abort, Retry, and Ignore
  3 = Yes, No, and Cancel
  4 = Yes and No
  5 = Retry and Cancel
  6 = Cancel, Try Again, Continue

Return values in "%ErrorLevel%":
  1 = OK
  2 = Cancel
  3 = Abort
  4 = Retry
  5 = Ignore
  6 = Yes
  7 = No
 10 = Try Again
 11 = Continue

Examples
msgbox.exe
msgbox.exe "The message box displays://nHello world!" 1
msgbox.exe "The SystemRoot is://n""%SystemRoot%""" 0

Screen capture
MsgBox

Download
MsgBox.exe v1.0 (3.0 KB)

Sources :
msgbox.c (5.2 KB) - (View in HTML)

License
CC0 CC0 1.0 Universal (CC0 1.0)
Public Domain Dedication