Question:You need to query WMI for a list of logical disks attached to the current computer. Which code sample correctly runs the WMI query?
 

A Dim searcher As New ObjectQuery("SELECT * FROM Win32_LogicalDisk")
Dim query As ManagementObject = searcher.Get()
 

B Dim searcher As New ManagementObjectSearcher( _
"SELECT * FROM Win32_LogicalDisk")
Dim queryCollection As ManagementObjectSearcher = searcher.Get() 

C Dim searcher As New ObjectQuery("SELECT * FROM Win32_LogicalDisk")
Dim queryCollection As ManagementObjectCollection = searcher.Get() 

D Dim searcher As New ManagementObjectSearcher( _
"SELECT * FROM Win32_LogicalDisk")
Dim queryCollection As ManagementObjectCollection = searcher.Get() 

+ Answer
+ Report
Total Preview: 1251

Copyright © 2024. Powered by Intellect Software Ltd