Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get disk free space
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00067795
Message ID:
00067959
Views:
26
Bruce,
Thank you for replying. I decided to go with DiskFreeSpace of Setupkit.dll (solution that I also found in the MS support FAQ section for VB). This approach seems to be simpler than API's GetDiskFreeSpace, which I have to admit I didn't use because of the slew of parameters required (sector size, number of clusters, etc) that made it look complicated.

>>Is there a function in VB (3.0 and above) that would return the available disk space?
>>I tried finding something in the help files, but I believe I'm missing something obvious.
>>TIA
>>Sorin
>
>There is no VB function to solve this problem. In 32-bit VB4 and in VB5 you can use the
>Windows API function GetDiskFreeSpace. There's no easy solution in 16-bit VB, but some
>programmers have found a function called DiskSpaceFree in one of the setup kit DLLs.
>I don't recommend this because the setup kit can be removed after setup, but it
>might be the only reasonable solution for 16-bit programs.
Previous
Reply
Map
View

Click here to load this message in the networking platform