Saved Bookmarks
| 1. |
Solve : Msg out of Bat? |
|
Answer» How to make a message box out of batch? How to make a message box out of batch?Try looking at MSG /? (you may not have it) or net send /? Or even better, USE a vbs solution. It will have more functionality and be overall a better idea. Code: [Select]mshta vbscript:Execute("resizeTo 0,0:MsgBox ""Text"",0,""Title"":Close") Quote from: Prince_ on February 05, 2010, 06:13:34 PM Code: [Select]mshta vbscript:Execute("resizeTo 0,0:MsgBox ""Text"",0,""Title"":Close")( WORKS Perfectly) C:\>box.bat C:\>mshta vbscript:Execute("resizeTo 0,0:MsgBox ""Text"",0,""Title"":Close") mshta vbscript:Execute("resizeTo 0,0:MsgBox ""Text"",0,""Title"":Close") Also, you can change the zero (the one I bolded above) to get different icons: Exclamation mark: 48 Information (i in a bubble): 64 Critical (white x in red circle): 16 Also you can add 4096 to make the messagebox system modal. There are other values for changing the BUTTONS, but I cannot think of a simple way that could be used to bring that result BACK to the batch file. Code: [Select]mshta vbscript:Execute("resizeTo 0,0:MsgBox ""Text"",0,""Title"":Close") Thanks that this code work very good. It look so real. Thanks...... |
|