Microsoft® Windows® Script Host Close Method |
WSH Reference Version 2 |
Closes an open stream.
object.strStream.Close
Part Description object WScript object. strStream StdIn, StdOut, or StdErr property.
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.