VB3 How to Get Current Drive's Free Disk Space in VB 3.0Last reviewed: January 9, 1997Article ID: Q113590 |
The information in this article applies to:
- Microsoft Visual Basic programming system for Windows, version 3.0
SUMMARYThis article shows how to find out how much free disk space is available on the current drive by calling the DiskSpaceFree function found in SETUPKIT.DLL. The SETUPKIT.DLL file ships with the Setup kit in Visual Basic version 3.0. The DiskSpaceFree function is useful for finding the total space available on a drive. If you use the DiskSpaceFree function in your Visual Basic program, you need to distribute the SETUPKIT.DLL file to your customers.
MORE INFORMATIONThere are also other functions in the SETUPKIT.DLL that may be useful. You can use the AllocUnit function to get the disk Allocation unit for the current drive and the SetTime function to set the destination file's date and time to the source file's date and time. For the declarations for these functions and others, please see the following article in the Microsoft Knowledge Base: ARTICLE-ID: Q109290 TITLE : Popular Windows API Functions Used from Visual Basic 3.0Examples of using these SETUPKIT.DLL functions can also be found in the \VB\SETUPKIT\SETUP1\SETUP1.MAK project which is part of the SetupWizard.
Steps to Finding Out How Much Free Space Is Available on Drive C:
|
KBCategory: kbprg kbcode
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |