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
///
 
Back
Top