Click here to Skip to main content
15,891,409 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
How can I get filesize in vb6 code? I want to compair between file of their size.
Posted

1 solution

VB
Dim ret As Long

ret = FileLen("c:\someFile.ext")

If ret > 0 Then 'or simply "If ret Then"
    'do your thing...
End If

'or

Dim ret As Boolean

ret = FileLen("c:\someFile.ext") > 0

If ret = True Then '-||-
    'do your thing...
End If


Check if the File Exists.
Just Google the question first. Here's the link-> "http://www.vbforums.com/showthread.php?t=498720"
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900