Search code examples
windowsvbscriptconsoleoutput

vbscript output to console


What is the command or the quickest way to output results to console using vbscript?


Solution

  • You mean:

    WScript.Echo "Like this?"
    

    If you run that under wscript.exe (the default handler for the .vbs extension, so what you'll get if you double-click the script) you'll get a "MessageBox" dialog with your text in it. If you run that under cscript.exe you'll get output in your console window.