VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



get file size of filename in a few lines of code. Use formula to convert to: Bytes Kb's MB's GB's

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

Rate 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?

Download this snippet    Add to My Saved Code

get file size of filename in a few lines of code. Use formula to convert to: Bytes Kb's MB's GB's Comments

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.

Post your comment

Subject:
Message:
0/1000 characters