home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HomeWare 14
/
HOMEWARE14.bin
/
os2
/
cenv2_19.arj
/
DIRSTAT.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-03-08
|
751b
|
24 lines
@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