Batch File to Make Message Box

How To Make A Message Box With A Batch File.


0 =OK button only

1 =OK and Cancel buttons

2 =Abort, Retry, and Ignore buttons

3 =Yes, No, and Cancel buttons

4 =Yes and No buttons

5 =Retry and Cancel buttons

16 =Critical Message icon3

2 =Warning Query icon

48 = Warning Message icon

64 =Information Message icon

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: The Code

@echo off

echo x=msgbox("Your Text Here" ,0, "Your Title Here") >> msgbox.vbs

start msgbox.vbs

^Sorry For MIstake!!!

Replace 0 with your number.

Step 2: Save As Msg.bat


Be the First to Share


    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    3 Discussions


    1 year ago

    How do you make it do something based on the button pressed


    1 year ago

    There are two of number 2 in the options


    1 year ago

    This is not the answer that i've been looking for it create a vbs file lol