|
-
Nov 17th, 2003, 10:01 AM
#1
Thread Starter
Fanatic Member
2 progress bars which describe the free and total space, in megabytes
I need to create 2 progress bars which describe the free and total space, in megabytes, on the given drive? could any body please inform me how to do this?
Thanks in advance
Regards
Winan
-
Nov 17th, 2003, 07:45 PM
#2
I wonder how many charact
Get the free and total space values, set the maximum property to the total, see the free to the Value property.
-
Nov 17th, 2003, 07:48 PM
#3
Thread Starter
Fanatic Member
But I though the difficult part is to get the free disk space and also to get the total disk space.. any idea?
TIA
Winanjaya
-
Nov 17th, 2003, 08:16 PM
#4
I wonder how many charact
-
Nov 18th, 2003, 10:22 AM
#5
Thread Starter
Fanatic Member
Thanks .. I got below codes (from msdn) : to get free disk space information ..
Public Function GetDiskSpace() As System.UInt64
Dim diskClass As _
New System.Management.ManagementClass("Win32_LogicalDisk")
Dim disks As System.Management.ManagementObjectCollection = _
diskClass.GetInstances()
Dim disk As System.Management.ManagementObject
Dim space As System.UInt64
For Each disk In disks
If CStr(disk("Name")) = "C:" Then
space = CType(disk("FreeSpace"), System.UInt64)
End If
Next disk
Return space
End Function
My question are:
1. How to get total disk capacity?
2. disk("FreeSpace") .. Could you please inform me where can I get the list of the property name of the item of disk ..
many thanks in advance
Best Regards
Winanjaya
-
Nov 18th, 2003, 10:46 AM
#6
Frenzied Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|