Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Folder Size Multiple Directories

Reply
 
Old 02-15-2009   #1 (permalink)
Yorgy


 
 

Folder Size Multiple Directories

Hello,

Can someone please tell me if there is a script out there that would collect
all folder sizes in a Windows Server 2003 Directory? Basically, we are
trying to determine what are the sizes in a home directory for 250 users.

Looking forward to your response.

Thank you
Yorgy


My System SpecsSystem Spec
Old 02-15-2009   #2 (permalink)
Pegasus \(MVP\)


 
 

Re: Folder Size Multiple Directories


"Yorgy" <georgei@xxxxxx> wrote in message
news884A196-863F-490C-8340-F1AA42CA4AAC@xxxxxx
Quote:

> Hello,
>
> Can someone please tell me if there is a script out there that would
> collect all folder sizes in a Windows Server 2003 Directory? Basically, we
> are trying to determine what are the sizes in a home directory for 250
> users.
>
> Looking forward to your response.
>
> Thank you
> Yorgy
There are many tools you can download to perform this task - check Google
for strings such as "Folder size". You can even use a humble batch file like
this one:
01. @echo off
02. set Home=E:\User Shares
03. echo Folder list compiled on %date% > c:\Folders.txt
04. echo ====================================== >> c:\Folders.txt
05. for /d %%a in ("%Home%\*.*") do call :Sub %%a
06. notepad c:\Folders.txt
07. goto :eof
08.
09. :Sub
10. echo Processing "%*"
11. for /F "delims=" %%b in ('dir "%*" /s ^| find /i "File(s)"') do set
Summary=%%b
12. echo %* %Summary% >> c:\Folders.txt


My System SpecsSystem Spec
Old 02-15-2009   #3 (permalink)
Yorgy


 
 

Re: Folder Size Multiple Directories

Thank you!

"Pegasus (MVP)" <I.can@xxxxxx> wrote in message
news:%23sxOZP7jJHA.4448@xxxxxx
Quote:

>
> "Yorgy" <georgei@xxxxxx> wrote in message
> news884A196-863F-490C-8340-F1AA42CA4AAC@xxxxxx
Quote:

>> Hello,
>>
>> Can someone please tell me if there is a script out there that would
>> collect all folder sizes in a Windows Server 2003 Directory? Basically,
>> we are trying to determine what are the sizes in a home directory for 250
>> users.
>>
>> Looking forward to your response.
>>
>> Thank you
>> Yorgy
>
> There are many tools you can download to perform this task - check Google
> for strings such as "Folder size". You can even use a humble batch file
> like this one:
> 01. @echo off
> 02. set Home=E:\User Shares
> 03. echo Folder list compiled on %date% > c:\Folders.txt
> 04. echo ====================================== >> c:\Folders.txt
> 05. for /d %%a in ("%Home%\*.*") do call :Sub %%a
> 06. notepad c:\Folders.txt
> 07. goto :eof
> 08.
> 09. :Sub
> 10. echo Processing "%*"
> 11. for /F "delims=" %%b in ('dir "%*" /s ^| find /i "File(s)"') do set
> Summary=%%b
> 12. echo %* %Summary% >> c:\Folders.txt
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
ASP Connecting to multiple Active Directories VB Script
Copy files from multiple directories.. PowerShell
How to delete multiple mail sub-directories Live Mail
move directories and files that exist in a sub folder - problem VB Script
Folder Size in Size Column Vista file management


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46