Get the Filesize of a file in Visual Basic 6.0

'VB 5.0 and VB 6.0
 
Dim FileSize As Long
 
FileSize = FileLen("C:\SOMEFILE.TXT")
 
MsgBox (FileSize& & " bytes")

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.