Jump to content

Recommended Posts

Posted

At the moment I'm poking things in File Server Resource Manager to try and find a report that both gives me the information I'm after and looks good.

 

I've added the staff work folder so it's looking through what everyone has saved, but it's creating massive lists of all the files...

 

All I really want is the table and chart from the HTML files it generates.

 

Capture.PNG

 

^ That's nice and clean. [And yes. 1 user has about 14GB of stuff for some reason. I'm looking into it.]

 

Is there a way to do this? [i vaguely remember loads of people hyping Treesize Pro.]

 

Or do I need to run the report as a CSV and do the charts myself?

  • 2 months later...
Posted

If you're willing to dabble a little, and just want raw text/numbers that you can manipulate in Excel, then it should be relatively simple to knock something together in Autoit3

 

Something like (knocked together from my head - not tested in any way shape or form!)...

(Apologies in advance for the laughable code)

 

#include

 

$Log = @SCRiptDir & "\Stafflog.txt"

$Root = "e:\homefolders\staff"

Dim $DirArray

 

; Clear the log

FileDelete($Log)

 

; Get list of folder names in $Root dir

$DirArray = _FileListToArray($Root, "*", 2, True)

 

For $DirLoop = 1 to $DirArray[0]

$Dir = $DirArray[$DirLoop]

$DirSize = DirGetSize($Dir, 0)

$RepString = $Dir & @Tab & $DirSize & @CRLF

$W = FileOpen($Log, 1)

FileWriteLine($W, $RepString)

Close($W)

Next

 

EXIT

 

Something like that, anyway :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...