Saved Bookmarks
| 1. |
Solve : Can i Create a MessageBox with batch command??? |
|
Answer» Can i Create a MessageBox with appointed caption and displaying message using batch command??Yes, sort of but i want to know whether i can start a messagebox directly with batch command or not Batch code does not support messageboxes, popups, or windows. However this little novelty script maybe helpful: Code: [Select]@echo off start %comspec% /c "mode 40,10&title My Popup&COLOR 1e&echo.&echo. Today is %DATE%&echo.&echo. Press a key!&pause>NUL" This is one of those scripts where you keep asking "What was I thinking" What about: msg * Hello!!!!!!!!!! That works in Command Prompt and in a batch file.echo msgbox"yourmesagehere">a.vbs,&;a.vbs <echo for i = 1 to 10>a.vbs &;echo msgbox"yourmessagehere">>a.vbs &;echo next>>a.vbs << to display 10 timesQuote from: diablo416 on July 05, 2008, 06:38:57 PM echo msgbox"yourmesagehere">a.vbs,&;a.vbs <<to display once That doesn't work, GIVES a VBS compilation error. This does Code: [Select]echo msgbox"your message here">a.vbs&a.vbs (The semicolon and comma were causing the error) that was a typo SORRY, echo msgbox"yourmesagehere">a.vbs &;a.vbs is what i ment instead.Quote from: diablo416 on July 07, 2008, 10:24:04 AM that was a typo sorry, You don't need the semicolon (';') This is tidier because it deletes the vbs afterwards Code: [Select]echo msgbox"your message here">a.vbs&a.vbs&del a.vbs |
|