views:

49

answers:

4

I have a project where I need to compare 2 executeable files and see if they are of the same file size.

Unfortunately, this is an addition to an existing VB6 project. I'm not entirely sure how to do it other than compare filestreams?

Could someone point me in the right direction?

Thanks in advance for any help.

+4  A: 

I seem to recall that

FileLen(filename)

returns the file size

Vinko Vrsalovic
+1. Just like it says in the manual. http://msdn.microsoft.com/en-us/library/aa262742(VS.60).aspx
MarkJ
A: 

Use FileLen() function - It returns size of file.

adatapost
A: 

What about using FileLen() ?

David Alfonso
A: 

Just one unrelated note on FileLen() - it completely and utterly fails on files over 4GB (e.g. greater than 32-bit integer). Gotta use the Windows API to see the length of files that large.

AngryHacker