Click here to Skip to main content
13,629,209 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.
Posted 16-Feb-12 21:03pm

1 solution

Rate this: bad
 
good
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

'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"
  Permalink  
v2

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
Web03 | 2.8.180712.1 | Last Updated 17 Feb 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

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