Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Find Drive Details Without Using API
Author:
Gehan Fernando
E-mail:
Click to e-mail author
Submitted:
5/21/2007
Version:
VB6
Compatibility:
VB6
Category:
Databases
Views:
8270
Find Drive Details Without Using API.
Declarations:
Rem Add Microsoft Scripting Runtime Library Private FSYS As New Scripting.FileSystemObject Private X As Drive
Code:
Private Sub Command1_Click() On Error Resume Next Dim DV, D Set DV = FSYS.Drives List1.Clear For Each D In DV List1.AddItem D.DriveLetter & vbTab & vbTab & _ D.DriveType & vbTab & _ D.FileSystem & vbTab & _ Format(((D.TotalSize / 1024) / 1024), "#,#0") & vbTab & _ Format(((D.AvailableSpace / 1024) / 1024), "#,#0") & vbTab & _ Format(((D.FreeSpace / 1024) / 1024), "#,#0") & vbTab & _ D.VolumeName Next End Sub
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement