How do I get the size of a file w/ VB?
Printable View
How do I get the size of a file w/ VB?
This code will return the file size in bytes.
If you want to return the file size in KB, than divide by 1024.Code:MsgBox FileLen("C:\myfile.exe")
Code:MsgBox FileLen("C:\myfile.exe") / 1024