vbscript output to console

Regmi picture Regmi · Dec 7, 2010 · Viewed 456.9k times · Source

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

Answer

Evan Anderson picture Evan Anderson · Dec 8, 2010

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.