Hello,
The collection of win32_softwareelements throught WMI causes some
annoying floppy drive access for some reason. I search already the
groups and found there was some bug in wmi in earlier versions of
windows and wmi (windows 98 & 2000)
The collection happens on a windows xp sp2 machine and didn't find
anything what may cause the floppy drive access.
Does anyone have experienced the same problem (and maybe solved it)?
thanks on advance
code:
dim _scope as ManagementScope= New ManagementScope("root\cimv2")
Dim wmiBaseObject As ManagementBaseObject
Dim selQuery As SelectQuery
Dim searcher As ManagementObjectSearcher
Dim MyCollection As ManagementObjectCollection
Dim dr As DataRow
Dim className As String
Try
className = "Win32_SoftwareElement"
selQuery = New SelectQuery(className)
searcher = New ManagementObjectSearcher(_scope, selQuery)
searcher.Options.ReturnImmediately = True
searcher.Options.Rewindable = False
MyCollection = searcher.Get()
.....
|