Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


FolderSize report (recursive)

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,37597
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> FolderSize report (recursive)
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 FolderSize report (recursive) - 9/8/2006 6:35:57 PM   
  Snipah


Posts: 1341
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
Having diskspace troubles? Can't put the finger on where the chunk of data is? This will report from Bytes to Yotta (!!) to  calc the diskspace and list it in a HTML ouput file (for lay-out purposes)

S.


      


// edit: added the root-folder and file-sizes, thx for the tips of improving it MBouchard ;)

< Message edited by Snipah -- 9/10/2006 6:29:13 AM >


_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com
 
 
Revisions: 2 | Post #: 1
 
 RE: FolderSize report (recursive) - 9/9/2006 6:08:29 AM   
  mbouchard


Posts: 1851
Score: 14
Joined: 5/15/2003
From: USA
Status: online
Very nice.  Suggestion, make the folder path a link.


Thinking on it, and not sure if this is even feasible.  Can you make it so that the folder size shown is only the files in the folder and not any sub folders. 
ex.

Total D:\ = 5gig
D: = 200meg
Total D:\folder1 = 1 gig
d:\folder1 = 250meg
d:\folder1\subfolder = 250meg
d:\folder1\subfolder2 = 250meg
etc

If you do something like this, you would need 3 columns.  Path, total, Size of files.

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to Snipah)
 
 
Post #: 2
 
 RE: FolderSize report (recursive) - 9/10/2006 10:41:47 AM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
my du.vbs script will also do this, and diskspace problems was the exact reason i wrote mine as well

http://www.visualbasicscript.com/m_27178/mpage_1/key_du.vbs/tm.htm#27178

on a side note: i like the output to html, i often dont consider making my output pretty because i am generally the only user of my scripts

_____________________________

Have you searched here ?
VBScript Fundamentals
My Site

(in reply to mbouchard)
 
 
Post #: 3
 
 RE: FolderSize report (recursive) - 9/10/2006 11:22:32 PM   
  mbouchard


Posts: 1851
Score: 14
Joined: 5/15/2003
From: USA
Status: online
Very nice, about the only change I will make to it would be to add this line

objWshShell.Run "iexplore.exe " & fSaveName



Hmm, wonder how it will work on a remote PC.  Will need to try that.

Edit: I have run this against my PC using \\compname\d$\ and while it is running, it is taking much much longer.

< Message edited by mbouchard -- 9/10/2006 11:26:16 PM >


_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to kirrilian)
 
 
Revisions: 1 | Post #: 4
 
 RE: FolderSize report (recursive) - 9/11/2006 4:31:32 AM   
  Snipah


Posts: 1341
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
quote:

ORIGINAL: mbouchard

Very nice, about the only change I will make to it would be to add this line

objWshShell.Run "iexplore.exe " & fSaveName

Hmm, wonder how it will work on a remote PC.  Will need to try that.

Edit: I have run this against my PC using \\compname\d$\ and while it is running, it is taking much much longer.


In general, UNC approaches are slower and less risk-save then other approaches...

_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to mbouchard)
 
 
Post #: 5
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> FolderSize report (recursive) Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts