home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib25b.dsk
/
CREATE.INDEX.bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
1KB
|
35 lines
1 REM **********************
2 REM * CREATE.INDEX *
3 REM * BY JIM GANZ *
4 REM * COPYRIGHT (C) 1985 *
5 REM * BY MICROSPARC, INC *
6 REM * CONCORD, MA 01742 *
7 REM **********************
100 REM CREATE INDEXFILE FOR ECF
110 TEXT : HOME : VTAB 23: PRINT "* COPYRIGHT 1985 BY MICROSPARC, INC. *": VTAB 5
120 PRINT "THIS PROGRAM SETS UP THE INDEXFILE FOR": PRINT
130 PRINT "USE WITH THE EXECUTIVE CARD FILE SYSTEM.";: PRINT
140 PRINT
150 PRINT "INSERT THE DISK ON WHICH YOU WISH"
160 PRINT "THE INDEXFILE TO BE CREATED..."
170 PRINT : PRINT
180 PRINT "PRESS ";: INVERSE : PRINT "RETURN";: NORMAL : INPUT " WHEN READY ";A$
190 VTAB PEEK(37): CALL -868
200 D$ = CHR$(4)
210 FI$ = "ECF.INDEXFILE"
220 ONERR GOTO 310
230 PRINT D$"VERIFY"FI$
240 PRINT "THE INDEXFILE IS ALREADY ON THIS DISK..."
250 PRINT "PRESS ";: INVERSE : PRINT "RETURN";: NORMAL : PRINT " TO REPLACE IT, ";: INVERSE : PRINT "ESC";: NORMAL : PRINT " TO EXIT ";
260 GET A$
270 IF A$ < > CHR$(13) AND A$ < > CHR$(27) THEN 260
280 PRINT : IF A$ = CHR$(27) THEN 370
290 PRINT D$"OPEN"FI$: PRINT D$"CLOSE"FI$: PRINT D$"DELETE"FI$
300 GOTO 320
310 IF PEEK(222) < >6 THEN STOP
320 POKE 216,0
330 PRINT D$"OPEN"FI$",L83"
340 PRINT D$"WRITE"FI$",R0"
350 PRINT 0
360 PRINT D$"CLOSE"
370 HOME : END