by robert (2 Submissions)
Category: Files/File Controls/Input/Output
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 24th July 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)
get file size of filename in a few lines of code. Use formula to convert to: Bytes Kb's MB's GB's
msgbox filelen(filename) & " bytes"
msgbox filelen(filename)\1000 & "kB's"
msgbox filelen(FileName)\1000\1000 & " MB's"
msgbox filelen(filename)\1000\1000\1000 & " GB's"
end function
'//Easy, huh?
No comments have been posted about get file size of filename in a few lines of code. Use formula to convert to: Bytes Kb's MB's GB's. Why not be the first to post a comment about get file size of filename in a few lines of code. Use formula to convert to: Bytes Kb's MB's GB's.