iFocus.Life News News - Breaking News & Top Stories - Latest World, US & Local News,Get the latest news, exclusives, sport, celebrities, showbiz, politics, business and lifestyle from The iFocus.Life,

How to Make a VBS MsgBox From DOS

104 7
    • 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.

Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time
You might also like on "Business & Finance"

Leave A Reply

Your email address will not be published.