WScript.Echo() (Method)

Echoes some output to the caller via standard output.

Availability:

JScript - 3.0
Property/method value type:WScript object
JavaScript syntax:WSHWScript.Echo(anArg)
WSHWScript.Echo(anArg, ...)
Argument list:anArgA string or numeric value

This works just like the echo command in a shell scripting environment.

It takes a variable number of arguments which can be strings or numbers.

The behavior depends on which interpreter is being used. In the cscript interpreter, the results are concatenated together into the output stream. In the wscript interpreter, each Echo() call results in an alert() dialog box which must be manually dismissed.