VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Get File Sizes of Large Files

El Mariachi  (5 Submissions)   Files/File Controls/Input/Output   Visual Basic 5.0   Intermediate   Wed 3rd February 2021

Gets the correct value for file sizes when the file is large (> ~2.1GB). Basically the file size function included in VB will give a wrong value when used on large files. The traditional way of getting the file size via API will also not work as detailed in the MS article https://support.microsoft.com/default.aspx?scid=kb;en-us;185476. After a bit of research I ended up tweaking the API function to calculate the proper file size. To see the differences, browse to a large file. Let me know if there are any bugs or suggestions to improve performance.

API Declarations
Several are listed in the code.

Rate Get File Sizes of Large Files (4(4 Vote))

Download Get File Sizes of Large Files

Get File Sizes of Large Files Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters