General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only