Microsoft® Windows® Script Host Echo Method |
WSH Reference Version 1 |
Sends output to a dialog box or the console.
object.Echo [Arg1] [,Arg2] [,Arg3] ...
Part Description object WScript object. Arg1, Arg2, Arg3 ... List of items to be displayed.
This method displays the output in a dialog box if the host is WScript.exe, or to the console if it is CScript.exe. Each item will be separated by a single space. Under CScript.exe a newline character is placed at the end of output. If no items are provided a blank line will be displayed.
The following example outputs some numbers and some text:
WScript.Echo WScript.Echo 1, 2, 3 WScript.Echo "Windows Script Host is cool."