Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Need a utility to size directories

Thread Tools
 
Search this Thread
 
Old Apr 26, 2002 | 03:34 PM
  #1  
father_jack's Avatar
father_jack
Thread Starter
Scooby Regular
 
Joined: Jul 2001
Posts: 1,112
Likes: 0
Post

Chaps - anyone know of a utility or script to display the size of a folder in NT. I have 550 directory tree and need to know the size of each folder.

Dir /s > file.txt is no use as the output is massive as it lists all files. I can also do a script which writes a text file for each directory, but I still get 550 files.

I used to have something that did this but can't remember its name.

Cheers

FJ
Reply
Old Apr 26, 2002 | 03:50 PM
  #2  
Crispin's Avatar
Crispin
Scooby Regular
 
Joined: Jan 2001
Posts: 534
Likes: 0
Post

VB

Dim FSO, FSOf
Dim strthisfolder$
strthisfolder = "c:\winnt"
Set FSO = CreateObject("Scripting.FileSystemObject")
Set FSOf = FSO.GetFolder(strthisfolder)
MsgBox "Size of " & strthisfolder & " is " & FormatNumber(Round(FSOf.Size / 1024, 1), 0) & " KBytes"
Reply
Old Apr 26, 2002 | 03:53 PM
  #3  
father_jack's Avatar
father_jack
Thread Starter
Scooby Regular
 
Joined: Jul 2001
Posts: 1,112
Likes: 0
Post

I have passed this to my chief code monkey who is now grinnig like a cheshire monkey

Thanks
Reply
Old Apr 26, 2002 | 03:58 PM
  #4  
michael_clarkson's Avatar
michael_clarkson
Scooby Regular
 
Joined: Jan 2001
Posts: 253
Likes: 0
Post

You could try this, if you didn't want to hack VB code.

http://www.gemmico.com/soft/fiload.htm
Reply
Old Apr 26, 2002 | 04:20 PM
  #5  
chiark's Avatar
chiark
Scooby Regular
 
Joined: Jun 2000
Posts: 13,735
Likes: 0
Post

Or just use plain n' simple treesize (google for it)
Reply
Old Apr 26, 2002 | 04:32 PM
  #6  
David_Wallis's Avatar
David_Wallis
Scooby Regular
 
Joined: Nov 2001
Posts: 15,239
Likes: 1
From: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Post

crispin... i was doing something like that... beaten to it... I was doing for each folder in folders though..

David
Reply
Old Apr 26, 2002 | 04:53 PM
  #7  
Crispin's Avatar
Crispin
Scooby Regular
 
Joined: Jan 2001
Posts: 534
Likes: 0
Post

David,

yeah, do the looping bit as well, i know what you mean, I just cut and pasted it from a project i'm working on, just happened to be in the neighbourhood if you like.....
Reply
Old Apr 26, 2002 | 04:56 PM
  #8  
father_jack's Avatar
father_jack
Thread Starter
Scooby Regular
 
Joined: Jul 2001
Posts: 1,112
Likes: 0
Post

Thanks again guys - now go to the pub will ya
Reply
Old Apr 29, 2002 | 09:55 AM
  #9  
NickAdams's Avatar
NickAdams
Scooby Regular
iTrader: (5)
 
Joined: Mar 2001
Posts: 2,895
Likes: 0
From: Cheshire
Post

You could always use the "diruse" command from the NT reskit.I use it here with a couple of switches and it works perfectly.Can even run it into Excel and then start to filter stuff.......
Here's a sample of what can be achieved:


Size (mb) Files Directory
107.47 3 SUB-TOTAL: C:\WIN 2000 ETC\Ghost 7.0
3.45 2 SUB-TOTAL: C:\WIN 2000 ETC\NAV Information
0.56 12 SUB-TOTAL: C:\WIN 2000 ETC\Sysprep_Update
13.38 46 SUB-TOTAL: C:\WIN 2000 ETC\Training
0.24 2 SUB-TOTAL: C:\WIN 2000 ETC\Wininfo
125.10 65 TOTAL


Does this help?

You can even run checks on unc paths too!!!!!

Good luck!

Nick
Reply
Old Apr 29, 2002 | 11:47 AM
  #10  
father_jack's Avatar
father_jack
Thread Starter
Scooby Regular
 
Joined: Jul 2001
Posts: 1,112
Likes: 0
Post

That's the fella ! Didn't know about that one. Cheers Nick.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
SilverM3
ScoobyNet General
8
Feb 24, 2021 01:03 PM
johnnybon
Subaru Parts
20
Mar 20, 2016 09:23 PM
FuZzBoM
Wheels, Tyres & Brakes
16
Oct 4, 2015 09:49 PM
Pro-Line Motorsport
Car Parts For Sale
2
Sep 29, 2015 07:36 PM
minguela
Wheels And Tyres For Sale
0
Sep 29, 2015 11:28 AM




All times are GMT +1. The time now is 09:29 PM.