home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
clear11e.zip
/
clr_rexx.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-10-30
|
717b
|
36 lines
/*Rexx program using CLEAR, ZIP, ZIPSPLIT
Drv = number of drives
Today = today-marker, e.g. 0912 for Sept. 12
C = array of drive letters*/
ARG Clrname FixedDay C.1 C.2 C.3 C.4 C.5 C.6 C.7 C.8 C.9
if FixedDay = "" then FixedDay = "1/1/80"
I = 0
DO UNTIL C.I = ""
I = I+1
END
Drv = I-1
Date = Date('E')
Today = substr(Date, 4, 2) substr(Date, 1, 2)
Today = delstr(Today, 3, 1)
"..\clear" Clrname FixedDay Today
if rc = 1 THEN DO
"@ECHO "
"@pause"
END
ELSE DO
DO I = Drv TO 1 BY -1
"start /f ..\OneDrvZp s"C.I""Today
END
END
"e DEL_"Today".CMD"
say "Execute the delete-batchfile? (Y/N)"
pull YesNo
if (YesNo = "Y") | (YesNo = "y") then
"call DEL_"Today".CMD"