>Hi All,
>
>In the case of a file that's more than 2Gig, ADIR() returns a negative filesize. The size is 2.451.450.455 and adir() says it's -1843516841.
>
>Maybe there's an algorithm that I can use to convert that negative number? Or can I use some API call?
How about 4294967296 + claimed (negative) size? Using arithmetic addition, of course.
4294967296 is 2^32.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)