home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Unsorted BBS Collection
/
thegreatunsorted.tar
/
thegreatunsorted
/
programming
/
misc_programming
/
batnmore.z!p
/
DUA.BTM
< prev
next >
Wrap
Text File
|
1992-11-15
|
1KB
|
30 lines
*REM This batch file is Freeware, free to use and redistribute unmodified *
*REM Jouni Miettunen * jon@stekt.oulu.fi * Oulu * Finland * Europe * 1992 *
REM Show disk usage grouping files alphabetically (only in current dir)
REM Note: can't handle filenames beginning with % (ascii 37) or ^ (ascii 94)
REM Timestamp 15-Nov-1992
break on^setlocal^unalias *
echos Checking File Structure. Please, wait...
REM Find all different 1st characters of filenames in current directory
REM for %x in (*.*) if exist %x set %@ascii[%x]=1 (4DOS 4.01 rev B)
for /a-d %x in (*.*) set %@ascii[%x]=1
REM Possible filename characters start at ascii 33, ascii 97 is lowercase a
REM set index=33
set index=97
:loop
iff "%[%index]"=="1" then^screen %_row 0 %@char[%index]-files
dir/kua-d %@char[%index]*|find "al"^endiff
set index=%@eval[%index+1]
REM Last possible filename character is ascii 255, ascii 122 is lowercase z
REM if %index le 255 goto loop
if %index le 122 goto loop
:end
break off^quit