home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
oct93
/
comm
/
dcdd.lha
/
DCDD
/
DCDDtime.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-07-19
|
1KB
|
56 lines
/* DCDDtime.rexx Version 1.1 - 19 July 1993 */
address command
OPTIONS RESULTS
windev = "CON:150/50/304/70/DCDDtime "
if ~open('wind',windev) then exit /* Window for all activity */
call GetTotTime
temp= ' Hours used in' date(m)':' right(thours,2,'0')':'right(tmins,2,'0')':'right(tsecs,2,'0')
call wsay(' ')
call wsaych(temp)
call wsay(' ')
call wsay(' ')
call wsay(' Press Return to exit')
call wsay(' ')
LetMeGo = readln('wind')
exit
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Functions / Subroutines *
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* Function - put string to window with EOL */
wsay:
parse arg strx
call writeln('wind',strx)
return
/* Function - put string to window without EOL */
wsaych:
parse arg strx
call writech('wind',strx)
return
GetTotTime:
timetitle='DCDDtime.'left(date('S'),6) /* DCDDtime.YYYYMM */
if open('TotTime',timetitle,'R')=0 then do /* Total hours, mins, secs */
thours = 0
tmins = 0 /* If file doesn't exist, set to zero */
tsecs = 0
end
else do
thours=readln('TotTime') /* If file does exist, read them */
tmins=readln('TotTime')
tsecs=readln('TotTime')
call close('TotTime')
end
return