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

Applies To


Description
Closes an open stream.
Syntax
object.strStream.Close
Parameters
Part Description
object WScript object.
strStream StdIn, StdOut, or StdErr property.
Remarks
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.