Microsoft® Windows® Script Host
Echo Method
WSH Reference
Version 1

Applies To


Description
Sends output to a dialog box or the console.
Syntax
object.Echo [Arg1] [,Arg2] [,Arg3] ...
Parameters
Part Description
object WScript object.
Arg1, Arg2, Arg3 ... List of items to be displayed.
Remarks
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.

Example
The following example outputs some numbers and some text:

WScript.Echo
WScript.Echo 1, 2, 3
WScript.Echo "Windows Script Host is cool."