equivalent to GetDiskFreeSpace

  • Thread starter Thread starter ThunderMusic
  • Start date Start date
ok, I found it. Here is the code
Dim o As ManagementObject

o = New ManagementObject("Win32_LogicalDisk.DeviceID=""C:""")

Console.Write("Free space on C is : {0}", o.Properties("FreeSpace").Value)

Console.ReadLine()

Thanks
 

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