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