home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
rbbs
/
batchmrg.lzh
/
RBBSSUB5.MRG
< prev
Wrap
Text File
|
1988-10-27
|
3KB
|
91 lines
* ------------[ BLED merge (c) Ken Goosens ]-------------
* Merge this against RBBSSUB5.BAS to produce D:\LITE\RBBSSUB5.BAS
* RBBSSUB5.BAS: Date 10-2-1988 Size 55407 bytes
* ------------[ Created 10-27-1988 18:54:09 ]------------
* REPLACING old line(s) by new
20202 IF (TIME.LOCK AND 2) AND NOT TIME.LOCK.EXEMPT THEN _
CALL TIMELOCK : _
IF NOT OK THEN _
RETURN
LAST.DOWNLOAD = Q
FIRST.DOWNLOAD = B
COMMAND.TRANSFER$ = ""
IF AUTODOWNLOAD.AVAILABLE THEN _
COMMAND.TRANSFER$ = "X"
AUTODOWNLOAD.IN.PROGRESS = AUTODOWNLOAD.AVAILABLE
IF LAST.DOWNLOAD > FIRST.DOWNLOAD THEN _
Z$ = B$(LAST.DOWNLOAD) : _
CALL ALLCAPS(Z$) : _
IF LEN (Z$) = 1 AND INSTR(LEFT$(DFLTXFER$,LEN(DFLTXFER$)-1),Z$) > 0 THEN _
LAST.DOWNLOAD = LAST.DOWNLOAD - 1 : _
COMMAND.TRANSFER$ = Z$ : _
AUTODOWNLOAD.IN.PROGRESS = FALSE
BATCH.BYTES# = 0
BATCH.BLOCKS# = 0
* ------[ first line different ]------
BATCH.FILES = 0 'Batch Fix
CALL KILLWORK (NODE.WORK.FILE$)
EC = 0
FOR DWN.INDEX = FIRST.DOWNLOAD TO LAST.DOWNLOAD
GOSUB 20205
IF FILESYS.PARAMETER > 1 THEN _
DWN.INDEX = LAST.DOWNLOAD + 1
* REPLACING old line(s) by new
20760 BYTES.IN.FILE# = LOF(2)
NUM.DNLD.BYTS! = LOF(2)
OK = TRUE
IF SIZE.ONLY THEN _
SIZE.ONLY = FALSE : _
RETURN
BLOCKS.IN.FILE# = MAX.BLOCK
IF BATCH.TRANSFER THEN _
* ------[ first line different ]------
BATCH.FILES = BATCH.FILES + 1 : _ 'batch fix
BATCH.BYTES# = BATCH.BYTES# + BYTES.IN.FILE# : _
BATCH.BLOCKS# = BATCH.BLOCKS# + BLOCKS.IN.FILE# : _
CALL OPENWRKA (NODE.WORK.FILE$) : _
CALL PRNTWRKA (FILE.NAME$) : _
RETURN
* REPLACING old line(s) by new
21760 GOSUB 21780
IF FILESYS.PARAMETER > 1 THEN _
RETURN
* ------[ first line different ]------
IF BATCH.TRANSFER THEN _ 'Batch fix
DOWNLOADS = DOWNLOADS +(BATCH.FILES - 1) 'BATCH FIX
IF NOT DOWNLOAD.COMPLETED THEN _
DF$ = " Aborted" _
ELSE CALL LOGDOWN (PERSONAL.DOWNLOAD,DWN.INDEX) : _
DOWNLOADS = DOWNLOADS + 1 : _
DLBYTES! = DLBYTES! + NUM.DNLD.BYTS! : _
DL.TODAY! = DL.TODAY! + 1 : _
BYTES.TODAY! = BYTES.TODAY! + NUM.DNLD.BYTS! : _
NUM.DNLD.BYTS! = 0 : _
CALL MUZAK (6) : _
DF$ = " Downloaded" : _
IF (DWN.INDEX = LAST.DOWNLOAD OR NOT CONCAT.FILES) THEN _
CALL SKIPLINE (1) : _
CALL QTPUT ("Download successful",1)
IF AUTODOWNLOAD.IN.PROGRESS THEN _
DF$ = " AUTO" + _
MID$(N$,2)
IF INSTR(N$,"Aborted") THEN _
AUTODOWNLOAD.IN.PROGRESS = 0
A$ = ""
* REPLACING old line(s) by new
21773 CALL BRKFNAME (FILE.NAME$,DR$,X$,EXTENTION$,TRUE)
Z$ = X$ + _
EXTENTION$ + _
DF$ + _
" at " + _
TIM$ + _
" using " + _
FT$ + _
STR$(BYTES.IN.FILE#)
CALL UPDTCALR (Z$,2)
* ------[ first line different ]------
IF BATCH.TRANSFER THEN _
Q = Q - 1 : _
GOTO 21772
CALL CHECKRATIO (FALSE) 'BATCH FIX