Microsoft® Windows® Script Host
Line Property
WSH Reference
Version 2

Applies To


Description
Returns the current line number in an input stream.
Syntax
object.strStream.Line
Parameters
Part Description
object WScript object.
strStream StdIn property.
Remarks
This property is read-only. After a stream is initially opened, and before anything is written, Line is equal to 1.

The StdIn, StdOut, and StdErr properties and methods will work only when the script is run with CScript.exe. If the script is run with WScript.exe, an "Invalid Handle" error will result. For more information, see Windows Script Host Error Messages.