Microsoft® Windows® Script Host Read Method |
WSH Reference Version 2 |
Reads a specified number of characters from an input stream and returns the resulting string.
object.strStream.Read(characters)
Part Description object WScript object. strStream StdIn property. characters Number of characters you want to read from the stream.
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.