Is there any way to crate a list of databases name and count the no. of records in each database of a folder?
jyotikumar
Offline
Last seen: 1 month 2 weeks ago
Joined: 04/08/2022 - 02:37
Yes, you can use the ProjectManagement.Databases() to get a list of databases and then loop through each one and get the number of records. What type of output are you looking for?
I wanted list of names of all my files present in "Final Results" folder, and the no. of records in each files present in the folder.
Here is some code that will place the filenames and the filesizes into two arrays. It uses the project folder for its base so if you only want items from a subfolder you will have to filter those out.
Thanks, Brian. This is working perfectly. But, Can we make the output a database?
Hi jyotikumar,
I updated the code so it now outputs to an IDEA database.