CodeItBetter Programming Another VB Programming Blog

How to find the File Length of the given file

Posted on January 4, 2009
1
2
3
4
5
6
'File/Folder Handling - How to find the File Length of the given file
'Returns its length in bytes
Debug.Print FileLen("C:\Temp\Test.txt") ' Returns a Long value

'For MB...
MsgBox Format$(FileLen("C:/OldImport.mdb") / (CLng(1024) * 1024), "#.00") & " MB"
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.