Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Visual Basic ( VB ) (http://www.go4expert.com/forums/visual-basic/)
-   -   finding the size of all the files present in a folder (http://www.go4expert.com/forums/finding-size-files-folder-t1082/)

harish13 28Jul2006 10:41

finding the size of all the files present in a folder
 
i want to find the total size of all files present in a folder how can i do this
thank u in advance

shabbir 28Jul2006 11:45

Re: finding the size of all the files present in a folder
 
Use FindFirstFile API which searches a directory for a file whose name matches the specified filename. FindFirstFile examines subdirectory names as well as filenames. If the function succeeds, the return value is a search handle used in a subsequent call to FindNextFile and calculate the size of each file and add up to find the size of the folder.


All times are GMT +5.5. The time now is 17:16.