cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
davide77
Level 5

folder size over 2Gb

I m trying to get folder size with the following code and itworks well...the problem is when the folder is bigger than 2Gb and it start counting like crazy.

Instead of 4264775192 it shows me -673589358..
I dont know how to fix it..

Can someone help me?

Thank u in advance,
Davide


nFolderSize = 0;
nFileFound = FindAllFiles( szFolder , "*.*" , svFile , RESET );
while (nFileFound = 0)
GetFileInfo( svFile , FILE_SIZE , nvFileSize , svResult );
nFolderSize = nFolderSize + nvFileSize;
nFileFound = FindAllFiles( szFolder , "*.*" , svFile ,CONTINUE);
endwhile;
Labels (1)
0 Kudos
(1) Reply
RobertDickau
Flexera Alumni

Perhaps look at the GetFileInfo help topic's descriptions of the FILE_SIZE_LOW and FILE_SIZE_HIGH constants...
0 Kudos