home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
XFER173C.ZIP
/
RSB5XFER.MRG
next >
Wrap
Text File
|
1992-05-09
|
6KB
|
103 lines
* ------------[ BLED merge (c) Ken Goosens ]-------------
* Merge this against RBBSSUB5.BAS to produce RBBSSUB5.NEW
* RBBSSUB5.BAS: Date 9-1-1991 Size 100075 bytes
* ------------[ Created 05-09-1992 14:35:01 ]------------
* REPLACING old line(s) by new
' $linesize:132
' $title: 'RBBSSUB5.BAS 17.3C, Copyright 1986 - 91 by D. Thomas Mack'
' Copyright 1991 by D. Thomas Mack, all rights reserved.
' Name ...............: RBBSSUB5.BAS
' First Released .....: February 11, 1990
' Subsequent Releases.: August 26, 1990; October 28, 1990; Sept 1, 1991
' Copyright ..........: 1986 - 1991
' Purpose.............: The Remote Bulletin Board System for the IBM PC,
' RBBS-PC.BAS utilizes a lot of common subroutines. Those that do not
' require error trapping are incorporated within RBBSSUB 2-5 as
' separately callable subroutines in order to free up as much
' code as possible within the 64K code segment used by RBBS-PC.BAS.
' Parameters..........: Most parameters are passed via a COMMON statement.
'
' Subroutine Line Function of Subroutine
' Name Number
' AraAllCaps 63720 Capitalize an elment of an array
' BinSearch 63520 Binary searches sorted file for a key value
' BreakFileName 63300 Break file name into component parts
' BufAsUnit 63500 Buffer out a string with CR's
' ChangeInt 63590 Get an Integer Value ' RM040101
' SetPrompt 63470 Set prompts based on the user's security
' DoorReturn 63100 Process door requests
' ExcludeCount 63715 Counts # of words in a string
' FdMacExe 63462 Executes a found macro
' FileSystem 20117 File System for RBBS-PC
' FindIt 63490 Check whether file exists and if so open as #2
' FormRead 63420 Read from file into a form
' LockAppend 63400 Prepare for a file append
' MacroExe 63460 Execute internal macro rather than user
' MsgNameMatch 63540 Match name to one in msg header
' NoPath 63480 Detects whether string has a path in it
' RestoreCom 63310 Restore comm port after external program
' ReadMacro 63330 Read and process macro
' ShellExit 63320 Exit RBBS via shell
' TakeOffHook 63530 Take modem off hook
* ------[ first line different ]------
' TStats 65004 Display transfer stats from XFER-? file ' XFER173C
' UnLockAppend 63410 Clean up after file append
' VerifyAns 63510 Verify that string passes edits
' WildCard 63200 Match string to a pattern
'
' $INCLUDE: 'RBBS-VAR.BAS'
'
* REPLACING old line(s) by new
20263 IF ZPrivateDoor THEN _
ZCmdTransfer$ = ZWasFT$ : _
CALL XferType (2,ZTrue) : _
ZCmdTransfer$ = ""
CALL OpenWork (2,"XFER-" + ZNodeID$ + ".DEF")
IF ZErrCode <> 0 THEN _
GOTO 20267
CALL ReadParms (ZWorkAra$(), ZFailureParm, 1)
IF ZErrCode <> 0 THEN _
GOTO 20267
CLOSE 2
* ------[ first line different ]------
IF NOT ZFakeXRpt THEN _ ' XFER173C
CALL TStats ' XFER173C
CALL KillWork ("XFER-" + ZNodeID$ + ".DEF")
* REPLACING old line(s) by new
* ------[ first line different ]------
65004 ' $SUBTITLE: 'TStats --- Display Transfer Stats from XFER-? file' ' XFER173C
' $PAGE ' XFER173C
' ' XFER173C
SUB TStats STATIC ' XFER173C
CALL OpenWork (2,"XFER-" + ZNodeID$ + ".DEF") ' XFER173C
CALL SkipLine (2) ' XFER173C
CALL QuickTPut1 (ZFG2$ + " Stats on this Transfer are as Follows........" + ZCrLF$) ' XFER173C
CALL QuickTPut1 (ZFG4$ + " FileName Bytes Dtr Rate CPS Errors " + ZCrLf$ + _ ' XFER173C
ZFG3$ + "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + ZEmphasizeOff$) ' XFER173C
WHILE NOT EOF(2) ' XFER173C
LINE INPUT #2,Stat$ ' XFER173C
WasS = INSTR(Stat$,"rs ") ' XFER173C
IF WasS > 0 THEN _ ' XFER173C
WasX$ = MID$(Stat$, 2, WasS) ' XFER173C
Match = INSTR(Stat$, ".") ' XFER173C
IF Match > 0 THEN _ ' XFER173C
WasZyX$ = MID$(Stat$, Match - 8, 12) ' XFER173C
Match = 0 ' XFER173C
Start = 1 ' XFER173C
DO ' XFER173C
Match = INSTR(Start, WasZyX$, "\") ' XFER173C
IF Match = 0 THEN _ ' XFER173C
Match = INSTR(Start, WasZyX$, "/") ' XFER173C
IF Match = 0 THEN _ ' XFER173C
Match = INSTR(Start, WasZyX$, " ") ' XFER173C
WasZyX$ = RIGHT$(WasZyX$, LEN(WasZyX$) - Match) ' XFER173C
LOOP WHILE Match ' XFER173C
WasXy = LEN(WasZyX$) ' XFER173C
CALL QuickTPut1 (ZFG1$ + WasZyX$ + SPACE$(15-WasXy) + _ ' XFER173C
WasX$ + ZEmphasizeOff$) ' XFER173C
WEND ' XFER173C
CALL SkipLine (1) ' XFER173C
CLOSE 2 ' XFER173C
CALL DelayTime (3) ' XFER173C
END SUB ' XFER173C