home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
RBBS in a Box Volume 1 #2
/
RBBS_vol1_no2.iso
/
095z
/
viewarc.bas
< prev
Wrap
BASIC Source File
|
1988-01-01
|
9KB
|
163 lines
NOTE: THE CHANGES BELOW ARE TO ADD THE VIEWARC MOD TO CPC 15.1C
MODIFIED BY ROY HERMAN ROY'S RBBS (312) 779-3916
This mod was written to allow the users to view the contents of ASCII
files from within an archived file. This is a nice feature in that
users can read .DOC, README, etc. files prior to eating up valuable down
load time. It is not a particularly sophisticated mod, but it gets the
job done. Basically it relies on PKXARC to do the dirty work so naturally
this program must be available in either the root or a pathed directory.
Since there was not a great deal of code involved, I didn't write this
mod to be merged....but rather entered manually (slower, but safer). I
have been using this mod now for several months and seems to work fine,
hope you can make some use of it.
Dave Miller (SYSOP)
Rapid Transmitt Authority (RTA)
Durham, NC 919-471-8048
This line was changed because I had to use the line # that was previously
used by the L]ist command (20150). The new starting line number for the
L]ist command is 20159. (see below)
1235 Z$ = B$(1)
IF LEN(Z$) < 1 THEN _
GOTO 1230
CALL ALLCAPS (Z$)
CALL SRCHCMND (SUB.SECTION,FF)
IF FF < 1 THEN _
GOSUB 1305 : _
GOTO 1230
IF ASC(Z$) = 32 THEN _
GOTO 1230
IF USER.SECURITY.LEVEL < OPT.SEC(FF) THEN _
VIOLATION$ = SECTION$+" "+Z$ : _
GOSUB 1380 : _
GOTO 1205
ON FF GOSUB _
1400, _ ' A)nswer questionnaire 1
9700, _ ' B)ulletins
1800, _ ' C)omments
10970, _ ' D)oor (exit to)
2000, _ ' E)nter a message
1275, _ ' F)ile system (exit to)
1760, _ ' I)nitial welcome redisplayed
5300, _ ' J)oin a conference
3900, _ ' K)ill a message
4700, _ ' O)perator page
1900, _ ' P)ersonal mail (look for)
4330, _ ' R)ead messages
4340, _ ' S)can message headers
4320, _ ' T)opic msg scan
1285, _ ' U)tilities (exit to)
5800, _ ' V)iew a conference
9800, _ ' W)ho's on other nodes displayed ' CPC15-1C
1283, _ ' @)Library (exit to) 18 ' CPC15-1C
20180, _ ' D)ownload 1
10570, _ ' G)oodbye
CHANGE TO 20159 20150, _ ' L)ist 'MOD 12/21 RAH
53000, _ ' N)ew
52900, _ ' S)can
20400, _ ' U)pload 6
20140, _ ' V)iew ARC Contents
5500, _ ' B)aud rate change 300==>450 1
9100, _ ' C)lock (time & time on)
42800, _ ' F)ile transfer protocol
43000, _ ' G)raphics
5200, _ ' L)ines per page
10925, _ ' M)essage margin
5110, _ ' P)assword change
5400, _ ' R)eview preferences
4850, _ ' S)tatistics displayed
1500, _ ' T)oggle
10090, _ ' U)serlog displayed 11
30000, _ ' A)rchive a Library disk 1 ' CPC15-1C
30100, _ ' C)hange a Library disk ' CPC15-1C
30200, _ ' D)ownload Library files ' CPC15-1C
10570, _ ' G)oodbye ' CPC15-1C
CHANGE TO 20159 20150, _ ' L)ist a Library directory ' MOD 12/21 RAH
52900, _ ' S)can a Library disk directory ' CPC15-1C
20140, _ ' V)iew arc contents 7 ' CPC15-1C
1325, _ ' H)elp 1
1325, _ ' ?)help
1250, _ ' Q)uit
4240, _ ' X)expert toggle on/off 4
10070, _ ' 1) List comments file 1
10090, _ ' 2) List callers file
10390, _ ' 3) Recover a message
10530, _ ' 4) Erase comments
11000, _ ' 5) User file maintenance
33070, _ ' 6) Toggle page bell on/off
10930 ' 7) Exit to DOS 2.x or above 7
GOTO 1205
' ************************************************************
' * QUIT COMMAND (GLOBAL) *
' ************************************************************
skip to line 20148...........
20148 JK = 3 : _
CALL QTPUT(FILE.NAME.HOLD$ + " contains the following files.",1)
CALL VIEWARC
IF SUBROUTINE.PARAMETER = -1 THEN _
GOTO 13540
CALL SKIPLINE(1)
A$ = "Would you like to view an ASCII file from this ARC [Y/N]" 'DMOD1
GOSUB 12995 'DMOD1
IF NOT YES THEN _ 'DMOD1
RETURN 'DMOD1
20149 JK = 2 :_ 'DMOD1
A$ = "What file(s) to view, [ENTER] quits" 'DMOD1
GOSUB 12995 'DMOD1
B = 1 'DMOD1
IF Q = 0 THEN _ 'DMOD1
RETURN 'DMOD1
LAST.ARC = Q 'DMOD1
FIRST.ARC = B 'DMOD1
FOR ARC.INDEX = FIRST.ARC TO LAST.ARC 'DMOD1
GOSUB 20151 'DMOD1
NEXT 'DMOD1
RETURN 'DMOD1
20151 Z$ = B$(ARC.INDEX) 'DMOD1
CALL ALLCAPS (Z$) 'DMOD1
CALL BRKFNAME (Z$,DRV$,PREFIX$,EXT$,FALSE) 'DMOD1
IF EXT$ = "ARC" OR EXT$ = "COM" OR EXT$ = "EXE" OR EXT$ = "BAS" OR _ 'DMOD1
EXT$ = "BIN" OR EXT$ = "LIB" OR EXT$ = "OBJ" THEN _ 'DMOD1
CALL QTPUT ("Sorry, only ASCII files can be viewed",1) :_ 'DMOD1
GOTO 20149 'DMOD1
CALL QTPUT ("Please stand by while I extract that file....",1) 'DMOD1
SHELL "PKXARC " + FILE.NAME$ + " " + z$ 'DMOD1
CALL BUFFILE (Z$) 'DMOD1
SHELL "DEL " + Z$ 'DMOD1
RETURN 'DMOD1
'
' *****************************************************************************
' * L - COMMAND FROM FILES MENU (LIST DIRECTORY) *
' *****************************************************************************
' ========= CHANGE LINE NUMBER 20150 TO 20159 =========== MOD 12/21 RAH
20150 LIST.DIRECTORY = TRUE
SEARCH.DATE$ = ""
SEARCH.STRING$ = ""
CK = 0
IF Q > 1 THEN _
LIST.INDEX = 2:_
GOTO 20160
LIST.INDEX = 1
CALL GETDIRS ("for menu")
IF Q = 0 THEN _
Q = 1 : _
B$(Q) = DIRECTORY.EXTENTION$
Well............that's it. Hope I didn't forget anything. Feel free to leave
comments on RTA. Take care.............
--DaVe