Report number of MP3 files in user's My Documents folder
Posted on 2008-10-07
Basically, I want to know how many MP3 files each user has in their My Documents folder.
All of our user's My Documents folders are redirected to a directory on our file server. The name of the directory is the same as the username. For instance, user1 would have My Documents pointing to \\servername\home\user1. User2 would have My Documents pointing to \\servername\home\user2. And so on and so forth.
Is there a way I can search \\servername\home and have it display the number of individual MP3 files in the user1 folder, user2 folder, user3 folder, etc? I would also like to know the size those MP3 files are taking up on our file server. I would like this information displayed in some sort of report format, such as
Username | # of MP3 | Size
user1 | 10 | 20mb
user2 | 5 | 10mb
user3 | 15 | 25mb