This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- folder size over 2Gb
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 17, 2008
11:37 AM
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;
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;
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 17, 2008
03:01 PM
Perhaps look at the GetFileInfo help topic's descriptions of the FILE_SIZE_LOW and FILE_SIZE_HIGH constants...
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)