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

Applies To


Description
Writes a specified string to an output stream.
Syntax
object.strStream.Write(strText)
Parameters
Part Description
object WScript object.
strStream StdOut or StdErr property.
strText The text you want to write 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.