Programming VBScript

Programs written in VBScript—or in pretty much any other language, for that matter—are hierarchical structures. A fully-fledged VBScript program is built from a number of smaller units, each of which is written to accomplish a specific part of the overall task. These smaller units are built from even smaller ones, and so on until the very lowest level is reached: the units provided by VBScript itself. The large-scale, high-level units are designed to carry out highly specific tasks. To accomplish this, they make heavy use of a number of smaller units. In contrast, the smaller units are more generic. They do less but can be used in more situations.

For example, consider a VBScript program designed to produce a set of lottery ...

Get Windows Management Instrumentation (WMI) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.