Click here to Skip to main content
13,903,802 members
Rate this:
Please Sign up or sign in to vote.
See more:
How can I get filesize in vb6 code? I want to compair between file of their size.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Dim ret As Long

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

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


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-> ""

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.190306.1 | Last Updated 17 Feb 2012
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100