Discussion in 'Visual Basic ( VB )' started by harish13, Jul 28, 2006.
i want to find the total size of all files present in a folder how can i do this
thank u in advance
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.
Separate names with a comma.