I am attempting to create an analysis that will allow me to pull the exact size of all windows computers: My Documents and Desktop folders from any user profiles on that machine. I need it to output that information into a list of some sort so we can see how much data in total each user has on their local device in those 2 locations (for each user profile on the machine). I would also want to limit the data returned to consist of folders larger than say 10MB just to help filter out all the temp profiles, generic user accounts, public profiles, etc. that might clutter up the list.
I have been trying various stuff I have found on the forums for hours and the closest I have come to is this:
((pathnames of it ,((sum of sizes of descendants of it)/1000) as string & " KB") of folders âDesktopâ of folders of folder âc:\Usersâ) whose (substring before " KB" of (item 1 of it) as Integer > 0)
However the problem is, the data returned is really messy and hard to digest.
What I would love is if I could have the output show as MB or GB etc, What would be helpful is if I could export it as a CSV spreadsheet for instance, which has different columns for computer name, for user profile, for size of my documents folder, and for size of Desktop folder. That way, all of the data would be seperated and able to be sorted it in different ways.
Unfortunately I am not great at writing relevancy at all yet, and I am just piecing things together and I feel like I have hit a wall in my understanding of how to get the results I need. Any thoughts or suggestions you guys have would be appreciated!
Thanks in advance,
Zach