Microsoft® Windows® Script Host
WriteLine Method
WSH Reference
Version 2

Applies To


Description
Writes a specified string and newline character to an output stream.
Syntax
object.strStream.WriteLine([strText])
Parameters
Part Description
object WScript object.
strStream StdOut or StdErr property.
strText Optional. The text you want to write to the stream. If omitted, a newline character is written to the stream.
Remarks
The StdIn, StdOut and StdErr properties and methods will only work when running the script with CScript.exe. An "Invalid Handle" error will be returned when run with WScript.exe.