Article ID: 113590
Article Last Modified on 9/1/2006
Control Name Property New Value -------------------------------------------------------------- Command1 Caption Press for Free Space on Drive C: Label1 AutoSize True
Declare Function DiskSpaceFree Lib "SETUPKIT.DLL" () As Long
Sub Command1_Click ()
Dim free_space& ' Holds number of bytes returned from DiskSpaceFree().
ChDrive "c:" ' Change to the drive you want to test.
free_space& = DiskSpaceFree()
' Enter the following two lines as one, single line:
Label1.Caption = "The total free space on drive C: = " &
Str$(free_space&) & " bytes"
End Sub
Additional query words: 3.00
Keywords: KB113590