By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,664 Members | 1,592 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,664 IT Pros & Developers. It's quick & easy.

CHECKING DISK SPACE

P: n/a
Hello,

I want to check & display the hard disk total & used space (i.e. drive C).

Using My.Computer (if possible). I have searched the documentation with no
luck.
--
USING VS/VB2005 STANDARD
Jun 27 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Apr 15, 7:29*pm, MARCEL SAUCIER
<MARCELSAUC...@discussions.microsoft.comwrote:
Hello,

I want to check & display the hard disk total & used space (i.e. drive C).

Using My.Computer (if possible). I have searched the documentation with no
luck.

--
USING VS/VB2005 STANDARD
Marcel,
My.Computer does provide such informations well.

' For retrieving total size of drive C:
My.Computer.FileSystem.GetDriveInfo("c:").TotalSiz e

' For retrieving total free space of drive C:
My.Computer.FileSystem.GetDriveInfo("c:").TotalFre eSpace

Hope this helps,

Onur Güzel
Jun 27 '08 #2

P: n/a
http://msdn2.microsoft.com/en-us/lib...30(VS.80).aspx

"MARCEL SAUCIER" <MA***********@discussions.microsoft.coma écrit dans le
message de news: 03**********************************@microsoft.com...
Hello,

I want to check & display the hard disk total & used space (i.e. drive C).

Using My.Computer (if possible). I have searched the documentation with no
luck.
--
USING VS/VB2005 STANDARD

Jun 27 '08 #3

P: n/a
THANK YOU VERY MUCH, IT'S WORKS !
--
USING VS/VB2005 STANDARD
"kimiraikkonen" wrote:
On Apr 15, 7:29 pm, MARCEL SAUCIER
<MARCELSAUC...@discussions.microsoft.comwrote:
Hello,

I want to check & display the hard disk total & used space (i.e. drive C).

Using My.Computer (if possible). I have searched the documentation with no
luck.

--
USING VS/VB2005 STANDARD

Marcel,
My.Computer does provide such informations well.

' For retrieving total size of drive C:
My.Computer.FileSystem.GetDriveInfo("c:").TotalSiz e

' For retrieving total free space of drive C:
My.Computer.FileSystem.GetDriveInfo("c:").TotalFre eSpace

Hope this helps,

Onur Güzel
Jun 27 '08 #4

P: n/a
THANK YOU VERY MUCH, IT'S SEEMS THAT I NEED TO IMPROVE MY WAY OF SEARCHING
FOR DOCUMENTATION.
--
USING VS/VB2005 STANDARD
"Patrice" wrote:
http://msdn2.microsoft.com/en-us/lib...30(VS.80).aspx

"MARCEL SAUCIER" <MA***********@discussions.microsoft.coma écrit dans le
message de news: 03**********************************@microsoft.com...
Hello,

I want to check & display the hard disk total & used space (i.e. drive C).

Using My.Computer (if possible). I have searched the documentation with no
luck.
--
USING VS/VB2005 STANDARD


Jun 27 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.