home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
DWNTIME.ZIP
/
RSB5TIME.MRG
< prev
next >
Wrap
Text File
|
1993-03-13
|
4KB
|
85 lines
* ------------[ BLED merge (c) Ken Goosens ]-------------
* Merge this against RBBSSUB5.BAS to produce RBBSSUB5.NEW
* RBBSSUB5.BAS: Date 6-20-1992 Size 116575 bytes
* ------------[ Created 09-02-1992 21:42:52 ]------------
* INSERTING new line(s)
20789 ZSubParm = 2 ' DS090201
CALL Line25
ZOutTxt$ = "Transfer Time:" + _
STR$(INT(ZBlocksInFile# / 60)) + _
" min," + _
STR$(INT(ZBlocksInFile# - (INT(ZBlocksInFile# / 60) * 60))) + _
" sec (approx)"
GOSUB 21650
IF ZFileSysParm > 1 THEN _
RETURN
* REPLACING old line(s) by new
* ------[ first line different ]------
20790 CALL CheckTimeRemain (MinsRemaining) ' DS090201
IF ZSubParm = -1 THEN _
ZFileSysParm = 6 : _
RETURN
ZOK = ZTrue
Temp = ZExtraDnldTime
CALL ChkAddedTime (Temp)
Temp = MinsRemaining + Temp
ZWasA = INT(ZBlocksInFile# / 60) + 1
IF ZWasA <= Temp THEN _
GOTO 20793
NoTimeDnFlag = 1 ' TG031201
IF ZDownFiles < 2 THEN _ ' DS090201
CALL AllCaps (ZFileNameHold$) : _ ' DS090201
ZOutTxt$ = ZFileNameHold$ + " Not enough minutes left! Need" _
+ STR$(ZWasA) + " have" + STR$(Temp) : _ ' DS090201
CALL QuickTPut1 (ZOutTxt$) : _ ' DS090201
IF NoTimeDnFlag THEN _ ' DS090201
CALL UpdtCalr (ZOutTxt$,2) ' DS090201
IF ZDownFiles < 2 THEN _
GOTO 20791 ' DS090201
CALL OpenWork (2,ZNodeWorkFile$) ' DS090201
WHILE NOT EOF(2) AND NoTimeDnFlag ' DS090201
CALL ReadDir (2,1) ' DS090201
CALL BreakFileName (ZOutTxt$,DR$,ZWasY$,WasX$,ZTrue) ' DS090201
ZFileName$ = ZWasY$ + WasX$ ' DS090201
ZOutTxt$ = ZFileName$ + " Not enough minutes left! Need" _
+ STR$(ZWasA) + " have" + STR$(Temp) ' DS090201
CALL UpdtCalr (ZOutTxt$,2) ' DS090201
WEND ' DS090201
NoTimeDnFlag = 0 ' DS090201
CLOSE 2 ' DS090201
ZOutTxt$ = "Not enough minutes left! Need" _
+ STR$(ZWasA) + " have" + STR$(Temp) ' DS090201
CALL QuickTPut1 (ZOutTxt$) ' DS090201
* REPLACING old line(s) by new
* ------[ first line different ]------
20791 IF ZDownFiles < 2 THEN _ ' DS090201
GOTO 20792
ZLastIndex = 0
ZOutTxt$ = "Edit files to download ([Y],N)"
ZTurboKey = - ZTurboKeyUser
GOSUB 21668
IF ZNo THEN _
LastDnld = 0 : _
GOTO 20792
Temp = 0
CALL OpenWork (2,ZNodeWorkFile$)
WHILE NOT EOF(2)
CALL ReadDir (2,1)
CALL BreakFileName (ZOutTxt$,DR$,ZWasY$,WasX$,ZTrue)
ZFileName$ = ZWasY$ + WasX$
ZOutTxt$ = "Download " + ZFileName$ + " (Y,[N])"
ZTurboKey = - ZTurboKeyUser
GOSUB 21668
IF ZYes THEN _
Temp = Temp + 1 : _
ZOutTxt$(Temp) = ZFileName$
WEND
CLOSE 2
ZAnsIndex = 1
ReStart = (Temp > 0)
LastDnld = Temp
ZLastIndex = Temp
FOR WasX = 1 TO Temp
ZUserIn$(WasX) = ZOutTxt$(WasX)
NEXT