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

Applies To


Description
Reads a specified number of characters from an input stream and returns the resulting string.
Syntax
object.strStream.Read(characters)
Parameters
Part Description
object WScript object.
strStream StdIn property.
characters Number of characters you want to read from 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.