Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reporting on FTP files > 4 GB?
Message
 
 
À
16/03/2005 13:25:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
SAMBA Server
Database:
Visual FoxPro
Divers
Thread ID:
00996360
Message ID:
00996457
Vues:
11
>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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform