Re: Folder Size Multiple Directories



Thank you!

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

"Yorgy" <georgei@xxxxxxxxxxxxxxxxxxx> wrote in message news:D884A196-863F-490C-8340-F1AA42CA4AAC@xxxxxxxxxxxxxxxx
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



.



Relevant Pages

  • Re: Export Folder size to text file or post
    ... To get the folder sizes in code is more complicated than you might ... Outlook 2000 and later as Collaboration Data Objects), ... CDO 1.21 coding and www.cdolive.com/cdo10.htm for examples of MAPI ...
    (microsoft.public.outlook.program_vba)
  • Re: Wrong Disk Free Space
    ... In Folder Sizes that folder has 9.5GB. ... What happened is when that folder was created, and when we gave priveliges ... I can understand that the administrator account doesn't have rights to ...
    (microsoft.public.windows.server.general)
  • Re: Wrong Disk Free Space
    ... In Explorer, with de Administrator account, there is a folder with 2.5GB. ... Folder Sizes probably uses the System account to get all files and folders. ...
    (microsoft.public.windows.server.general)
  • Re: Folder Size Multiple Directories
    ... collect all folder sizes in a Windows Server 2003 Directory? ... echo Folder list compiled on %date%> c:\Folders.txt ...
    (microsoft.public.scripting.vbscript)
  • Re: Files deleted but free space doesnt increase
    ... unchecked "Compress files in this folder" and let it work for a while. ... So is my problem that although I'm deleting hundreds of GB, ... is an NTFS volume with file compression enabled. ... echo %date% %time%> c:\test.txt ...
    (microsoft.public.windows.file_system)