G
Guest
Hi people,
I saw several code samples that first enumerate all drives using a query
with the ManagementObjectSearcher class:
<code>
ManagementObjectSearcher query = new ManagementObjectSearcher("SELECT * From
Win32_LogicalDisk ");
ManagementObjectCollection queryCollection = query.Get();
</code>
How can I query for a specific drive (like D? Should I query it as
"SELECT * From Win32_LogicalDisk Where Name='D'"
???
Thanks & Kind regards,
I saw several code samples that first enumerate all drives using a query
with the ManagementObjectSearcher class:
<code>
ManagementObjectSearcher query = new ManagementObjectSearcher("SELECT * From
Win32_LogicalDisk ");
ManagementObjectCollection queryCollection = query.Get();
</code>
How can I query for a specific drive (like D? Should I query it as
"SELECT * From Win32_LogicalDisk Where Name='D'"
???
Thanks & Kind regards,