Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











Property:  WScript.StdIn

WScript.StdIn

The StdIn property returns a read-only TextStream object that reads text from the Standard Input stream. This property is read only and can only be used when cscript is the host executable. If you attempt to use this property when running a script under wscript, an "Invalid handle" error will be generated.

The following JScript code illustrates the use of this property when run with an input stream that starts with the line "StdIn first line".

Code:
objStdIn = WScript.StdIn
strLine = objStdIn.ReadLine()
WScript.Echo("Read the line\"" + strLine + "\"")


Output:
Read the line "StdIn first line"

 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information