473,394 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Disk Size of Local C Drive

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

Mar 13 '06 #1
1 1665
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/lib...4x(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




"Devlei" <de****@eastcape.net> schreef in bericht
news:11**********************@z34g2000cwc.googlegr oups.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

Mar 13 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Stanley J Mroczek | last post by:
I am looking to browse local disk drive to upload pictures to my web system. How do i display my local files? I am using an aspx in vb
1
by: Joriveek | last post by:
Trying to install SQL Server 2005 beta version on partition disk drive say F:\ (Other than local disk drive c:\), Does anyone know how can I do this? During the installation, it never asks me on...
2
by: Massimiliano Campagnoli | last post by:
Good morning, Database PRODUCTION was created on a system mamanged tablespace on drive c:\ Now drive c:\ is running out of space and I need to move PRODUCTION to the larger drive d:\ on the...
6
by: Steve Gerhart | last post by:
Hopefully someone can point me in the right direction. I'm try to construct a table that has the following information about disk drives on 2000 and NT 4.0 boxes. Size, Partitions and Logical...
34
by: Tom | last post by:
I'd greatly appreciate advice and code snippets on how to create a ram disk within a C/C++ program. I also need to be able to determine the free space. Thanks in advance for any help.
13
by: ragtag99 | last post by:
I posted this on comp.lang.asm.x86, alt.os.development, comp.arch, comp.lang.c++ Im working with windows xp professional, NTFS and programming with MASM, c++ (free compiler) or visual basic 6.0...
29
by: faq | last post by:
Hello- My computer came with a 40GB Maxtor DiamondPlus hard disk drive. I added an 80GB Maxtor DiamondPlus drive as a slave on the same IDE ATA cable, but the BIOS doesn't detect the new drive....
12
by: jim | last post by:
I'd like to get some .net sample code that shows me how to make a complete backup of a hard drive (like my C: drive) to another location (say my D: drive) while the C: drive is in use. ...
1
by: thanawala27 | last post by:
Hi, I have mapped a server to my computer (called it H drive). all my perl scripts run on the server. Now, i would like to copy a file from my local hard disk (C drive) to this server. As my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.