You will find that navigating through the CIM object model is not always straightforward and often requires rather elaborate coding. When you know the identity of a WMI object in question in advance, you can bind to it by just instantiating a Management0bject with an appropriate object path parameter. The situation is different, however, if a criterion for retrieving the WMI object is not based on the object’s identity but rather on its other, non-key properties. For instance, if you are charged with the task of compressing all files that exceed 10 MB in size on a given system, you may crank out the following code:
KeywordsQuery Language Association Class Select Statement Structure Query Language Data Query
Unable to display preview. Download preview PDF.