Sends a string to an output stream.
The StdIn, StdOut, and StdErr properties and methods work when running the script with the CScript.exe host executable file only. An "Invalid Handle" error is returned when run with WScript.exe. The position pointer moves to the point just beyond the last character in strText.
The following code demonstrates the use of the Write method.
Dim strInput strInput = WScript.StdIn.ReadAll WScript.StdOut.
var strInput = WScript.StdIn.ReadAll(); WScript.StdOut.