|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Disk Size of Local C DriveWhat 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 Show quoteHide quote "Devlei" <dev***@eastcape.net> schreef in bericht news:1142222397.124987.126240@z34g2000cwc.googlegroups.com... > 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 > |
|||||||||||||||||||||||