|
Hi,
I'd like to write a short script which enumerates all the user folders within the (dependant on O.S.) "c:\documents and settings" or "c:\users" folder and then find out how many items exist within the Desktop sub-folder of each user's folder.
Is there an easy way to enumerate all the folders (not files) that exist in a location and put the results in an array perhaps? Then I'd need to go through the array and enumerate files (not folders) for each element.
Thanks!
(the reason for this is sometimes we have to wipe and rebuild a PC and there have been perhaps 20 - 30 people that may have logged onto that PC. To preserve their desktop items we have to manually back those Desktop folders up. Instead of having to manually go through and check which people are actually storing anything on their Desktop, it'd be nice to have a tool that does this and shows the number of entries on screen of each Desktop folder)
Edited by kelp7 (2013-12-06 01:05 PM)
|