Jump to content

Script to display the size of all folders in a home director


Recommended Posts

Posted
Is there such a way of finding out the size of folders in side someone home area with out having right click and choose properties? Can this be done by a script or something else?
Posted

Can I refer you to a thread I started elsewhere which covers this general topic.

 

Theoretically you can do this in WSH langauges VBScript and JScript but I couldn't get Scripting.FileSystemObject to play ball.

 

If you install PowerShell then it becomes trivial and you can do it as one liner (OK a compound statement).

Posted

If you want scriptable, have a look at DirUse - downloadable from the MS website, lots of handy features including only flagging up directories over a given size.

 

DIRUSE /M /* C:\

 

Size (mb) Files Directory

949.18 4047 SUB-TOTAL: C:\Backup

0.86 3 SUB-TOTAL: C:\bmp2jpg

0.01 2 SUB-TOTAL: C:\CPQSYSTEM

4968.72 14859 SUB-TOTAL: C:\Documents and Settings

18012.65 7483 SUB-TOTAL: C:\Downloads

...

 

I use it to script keeping an eye on home directory sizes on our creaky NT4 server which doesn't support quotas...

Guest drewinc
Posted

Hi,

 

I found this vbscript a while back that displays the folders and sizes in a graphical format.

 

I do have a dll file that once registered will allow you to add a column in Windows explorer details view for folder size - this will then show the folder sizes for each directory. Let me know if anyone wants it.

 

Regards

foldersize.vbs

Posted
The Dirlot utility is just what you are looking for. It is HTA (JScript) hat shows size of folders in any parent folder on colorful diagram. And of course it shows the data in digital form as well - in bytes, Kbytes and Mbytes. It's free and open source.

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...