Looking for a directory management tool

  • Thread starter Thread starter Doug
  • Start date Start date
D

Doug

I have a network drive that has several thousand folders. I'm looking for a
utility that will list each folder in the root of this drive along with the
total size of the folder (including subfolders) and the date of the most
recent modification of any file in the folder. The idea is to find out which
folders haven't been modified recently and can safely be archived. Ideally
I'd like the output to be captured to a dilimeted text file that could be
imported into Excel.

Any suggestions?
 
Doug said:
I have a network drive that has several thousand folders. I'm looking for a
utility that will list each folder in the root of this drive along with the
total size of the folder (including subfolders) and the date of the most
recent modification of any file in the folder. The idea is to find out which
folders haven't been modified recently and can safely be archived. Ideally
I'd like the output to be captured to a dilimeted text file that could be
imported into Excel.

Any suggestions?

You could run the batch file below. Remove every tilde (~) and
unwrap the lines that do not start with a tilde. You can download
xxcopy.exe from several internet sites.

~@echo off
~goto Start
~========================================================
~This batch file will generate a comma-delimited listing
~of the amount of disk space used by each folder hanging
~off the current folder. Folders without any recently
~updated files are flagged "unused".
~
~Prerequisite: %SystemRoot%\xxcopy.exe
~
~1.9.2006 FNL
~========================================================
~
~:Start
~set AgeLimit=30
~set Output=c:\Files.xls
~
~setlocal enabledelayedexpansion
~if exist %Output% del %Output%
~
~for /d %%a in (*.*) do (
~ echo Processing %%a
~ set status=used
~ set files=0 & set bytes=0
~ %SystemRoot%\xxcopy.exe /da#%AgeLimit% /L /s "%%a" "%temp%" | find /i "no
files" > nul && set status=unused
~ for /F "tokens=1,3" %%b in ('dir /s /a-d "%%a" 2^>nul ^| find /i
"file(s)"') do set files=%%b & set bytes=%%c
~ echo "%%a","!status!","!files!","files","!bytes!","bytes" >> %Output%
~)
~endlocal
~
~echo Output is available in %Output%.
 
Back
Top