WSH Object Model

Microsoft® Windows® 2000 Scripting Guide

People typically speak of WSH as though it were a single item. In truth, however, WSH is made up of multiple components. For example, the WSH environment includes a built-in object, WScript, and three COM objects: WshShell, WshNetwork, and WshController. Together, WScript, WshShell, WshNetwork, and WshController are referred to as the WSH objects. Your scripts access the capabilities of these objects through the WSH Object Model.

Figure 3.2 presents the WSH Object Model. Each of the items detailed in the diagram will be discussed at some point in this chapter.

Figure 3.2 WSH Object Model Diagram

sas_wsh_30c