Windows – vbscript output to console

consoleoutputvbscriptwindows

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

Best Answer

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.