home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1994 February
/
psl_9403.zip
/
psl_9403
/
DOS
/
UT_SYSTM
/
CENVI2.ZIP
/
DIRSTAT.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-06-06
|
562b
|
22 lines
@echo OFF
REM DirStat.cmd - Use Find#.cmm to parse directory listings and output
REM statistics about the current directory.
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