Disk Size of Local C Drive

  • Thread starter Thread starter Devlei
  • Start date Start date
D

Devlei

What is the best way to obtain the Total Disk Size of the Local C
Drive?

I am currently using the ManagementObject class such as :
Dim disk As New ManagementObject("Win32_LogicalDisk.DeviceID=""C:""")
I am however not sure that this is the best way.

With thanks
Dave
 
Dave,

There is seldom in Net a best choose, take what is the best for you.

If you have version 2005 than you can use as well
http://msdn2.microsoft.com/en-us/library/xw6hsa4x(VS.80).aspx

Most of us do using an Shared Class/Object not call best, that is not a
reason that you would not use it, however. The reasons are than mostly
theoretical

I hope this helps,

Cor
 

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