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
msgbox.exe
msgbox.exe "The message box displays://nHello world!" 1
msgbox.exe "The SystemRoot is://n""%SystemRoot%""" 0
![]() |
CC0 1.0 Universal (CC0 1.0) Public Domain Dedication |