Hi Pal, I am not aware of dotnet much but in VB I did as mentioned below. have a look it might help you. 1. Create a access database with fields a. ext - text(4) b. cnt - long Name the table as FileCount 2. Get all the files into collection variable 3. loop it, every time you get a filename in the loop pass to a function to identify the ext is available in the table or not, if not, insert it, if exists update its count. at the end just run the select query you will get the results. Hope this helps you. Thanks & Regards Sunil Kumar.K |