home *** CD-ROM | disk | FTP | other *** search
- @echo OFF
- REM **************************************************************************
- REM *** DirStat.cmd - Use Find#.cmm to parse directory listings and output ***
- REM *** ver.1 statistics about the current directory. ***
- REM **************************************************************************
-
- SETLOCAL
- set DELDIR=
- set FIND_TEMP_FILE=DSTemp.cmd
-
- dir | find "file(s)" | cenvi Find#.cmm
- call %FIND_TEMP_FILE%
- set FILE_COUNT=%NUMBER%
-
- if exist %FIND_TEMP_FILE% del %FIND_TEMP_FILE%
- dir | find "file(s)" | cenvi Find#.cmm -1
- call %FIND_TEMP_FILE%
-
- ECHO The current directory contains %FILE_COUNT% files and uses %NUMBER% bytes.
-
- REM Clean-up
- if exist %FIND_TEMP_FILE% del %FIND_TEMP_FILE%
- ENDLOCAL