VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Important code for getting Drive Name, Drive label, Drive Type, Free Disk Space, Total Disk Spcae,

Ali Farooq  (2 Submissions)   Windows System Services   VB 6.0   Unknown Difficulty   Thu 15th June 2006   Mon 8th February 2021

Important code for getting Drive Name, Drive label, Drive Type, Free Disk Space, Total Disk Spcae, Window Directory,Current Directory and

API Declarations


' one Drive List Box (DriveNAME)
' one Dir List Box (dirNAME)
' one File List Box (fileFILENAMES)
' 8 label with the following names
' lbDVNAME, lbLBNAME, lbDVTYPE, lbTDSKSPC, lbDSKFRSPC, lbCRNTDR, lbWINDR,
' lbPRGCRNTDR
' add 1 module
' if u have done all above work successfully then feel relax and just paste the
' following code.

Public Declare Function GetDriveType Lib "kernel32" Alias "GetDriveTypeA" (ByVal nDrive As String) As Long
Public Declare Function GetDiskFreeSpace Lib "kernel32" Alias "GetDiskFreeSpaceA" (ByVal lpRootPathName As String, lpSectorsPerCluster As Long, lpBytesPerSector As Long, lpNumberOfFreeClusters As Long, lpTotalNumberOfClusters As Long) As Long
Public Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long

Rate Important code for getting Drive Name, Drive label, Drive Type, Free Disk Space, Total Disk Spcae, (2(2 Vote))
Important code for getting Drive Name, Drive label, Drive Type, Free Disk Space, Total Disk Spcae, .bas

Important code for getting Drive Name, Drive label, Drive Type, Free Disk Space, Total Disk Spcae, Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters