PC Review Forums Newsgroups Windows XP Windows XP WMI floppy drive access while retrieving win32_sofwareelement

Reply

floppy drive access while retrieving win32_sofwareelement

 
Thread Tools Rate Thread
Old 21-03-2007, 12:44 PM   #1
frederic.desmyter@gmail.com
Guest
 
Posts: n/a
Default floppy drive access while retrieving win32_sofwareelement


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()
.....

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off