Free Space

  • Thread starter Thread starter Eldiablo
  • Start date Start date
* "Eldiablo said:
How to visualize the space rimanate on one disk drive in
VB.NET?

Add a reference to "System.Management.dll".

\\\
Imports System.Management
..
..
..
Dim disk As New ManagementObject("Win32_LogicalDisk.DeviceID=""C:""")
Dim diskProperty As PropertyData
For Each diskProperty In disk.Properties
Console.WriteLine("{0} = {1}", diskProperty.Name, diskProperty.Value)
Next diskProperty
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top