共用方式為


StdErr Property (WScript)

Exposes the write-only error output stream for the current script.

                      object.StdErr 

Arguments

  • object
    WScript object.

Remarks

The StdErr property returns an object representing the standard error stream. The StdIn, StdOut, and StdErr streams can be accessed while using CScript.exe only. Attempting to access these streams while using WScript.exe produces an error.

Applies To:

WScript Object

See Also

Reference

TextStream Object

Write Method (Windows Script Host)

Other Resources

Error Messages (Windows Script Host)