How to Make a VBS MsgBox From DOS
- 1). Press the "Windows" and "R" keys simultaneously. Type "cmd" in the "Open" box and then click on "OK." This opens a command prompt window.
- 2). Type "cd\" (without quotes) and then press "Enter." Take note of your current drive letter.
- 3). Type the following code and then press "Enter."
echo x=msgbox(wscript.arguments(0)) > m.vbs - 4). Type the following code and press "Enter." Replace "Hello World" with the text that you'd like to show. Replace "c:\" with your current drive.
cscript c:\m.vbs "Hello World" - 5). Click on "OK" to close your message box.