Tag Archives: filesize

Get the Filesize of a file in Visual Basic 6.0

Click Star to Rate Post
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
 

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