Need a utility to size directories
#1
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
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
#2
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"
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"
#6
Scooby Regular
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like
on
1 Post
crispin... i was doing something like that... beaten to it... I was doing for each folder in folders though..
David
David
Trending Topics
#9
Scooby Regular
iTrader: (5)
Join Date: Mar 2001
Location: Cheshire
Posts: 2,895
Likes: 0
Received 0 Likes
on
0 Posts
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
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
Thread
Thread Starter
Forum
Replies
Last Post
Pro-Line Motorsport
Car Parts For Sale
2
29 September 2015 07:36 PM