home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
DSA2.ZIP
/
RUNDSA.CMD
< prev
Wrap
OS/2 REXX Batch file
|
1991-05-31
|
533b
|
20 lines
/**/
/* This REXX program runs the DSA program to see how many
bytes are occupied by files on the current drive. */
parse arg spec
if spec = '' then spec = '\';
scale = 'megabyte' /* We'll ask for megabytes first */
address cmd 'dsa /s /m /r' spec /* Run DSA (Suppress screen output) */
if RC = 0 then do /* Less than 1Mb so ask for KILOBYTES */
address cmd 'dsa -k -r -s' spec
scale = 'kilobyte'
end
if RC <> 1 then scale = scale || 's'; /* Get the English right! */
say RC scale 'occupied by files.'