G
Guest
Hi,
I would like to convert a VBS to C# that retrieves all devices info on a
system from "Win32_CIMLogicalDeviceCIMDataFile" class.
....
Set wmiColls = objWMI.ExecQuery("SELECT * FROM
Win32_CIMLogicalDeviceCIMDataFile")
For Each wmiColl In wmiColls
[1] Set ao = GetObject("winmgmts:" & wmiColl.antecedent)
[2] Set do = GetObject("winmgmts:" & wmiColl.dependent)
....
I don't know how to convert [1] and [2] to C#.
Can anyone please help?
Thanks in advance,
-P
I would like to convert a VBS to C# that retrieves all devices info on a
system from "Win32_CIMLogicalDeviceCIMDataFile" class.
....
Set wmiColls = objWMI.ExecQuery("SELECT * FROM
Win32_CIMLogicalDeviceCIMDataFile")
For Each wmiColl In wmiColls
[1] Set ao = GetObject("winmgmts:" & wmiColl.antecedent)
[2] Set do = GetObject("winmgmts:" & wmiColl.dependent)
....
I don't know how to convert [1] and [2] to C#.
Can anyone please help?
Thanks in advance,
-P