Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

User profile sizes

  • 23-05-2009 12:50AM
    #1
    Closed Accounts Posts: 1,567 ✭✭✭


    i'm trying to find out ways to determine the size of user profiles on either windows 2000 or XP

    the only way i can think at the moment is by recursively enumerating every file in each profile and calculating the total, but is there an easier way?


Comments

  • Closed Accounts Posts: 1,567 ✭✭✭Martyr


    i found some simple script that will do the trick
    snippet stolen from http://www.visualbasicscript.com/m_51721/tm.htm

    [PHP]

    Set fso = CreateObject("Scripting.FileSystemObject")

    Set profiles = fso.GetFolder("C:\Documents and Settings")
    For Each user in profiles.SubFolders
    Wscript.Echo UCase(user.Name) & " uses " & user.size & " bytes."
    Next[/PHP]

    but anymore are welcome


Advertisement