Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reporting on FTP files > 4 GB?
Message
 
 
To
16/03/2005 13:25:05
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
SAMBA Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00996360
Message ID:
00996457
Views:
12
>Interesting. All four values for lnSizeLow are 255 and all the values for lnSizeHigh are 0.
>
>Therefore I have the following result:
>
> lnSizeLow = ( 255 * 1 ) + ;
> ( 255 * 256 ) + ;
> ( 255 * 65536 ) + ;
> ( 255 * 16777216 )
>
> lnSizeLow = 4294967295
>
>lnSizeLow / (2^10) = 4194304
>
>Ok, so now the lnSizeHigh values are wrong. Not sure why lnSizeHigh is not working properly. Got some ideas on this one?

Looks like WInINET bug or limitation for FindFile* commands. You may want to take a look at some other WinINET functions:

FtpGetFileSize - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/ftpgetfilesize.asp
FtpCommand - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/ftpcommand.asp

Maybe they can return correct result in this case.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform