home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug073.arc
/
GENELOGY.LBR
/
FAMILY.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
1KB
|
43 lines
* START.CMD used for initialising FAMILY programs. 4/10/86
SET TALK OFF
SET COLON OFF
SET BELL OFF
SET DEFAULT TO B:
DO WHILE .NOT. FILE('b:family.dbf')
? CHR(7)+'WRONG disk in drive B:'
? 'Put FAMILY DATA disk in, then press <RETURN>'
SET CONSOLE OFF
WAIT
SET CONSOLE ON
ENDDO
RESET B:
SET DEFAULT TO A:
SELECT PRIMARY
USE b:family
GO BOTTOM
STORE STR(#,4) TO xfin
STORE 386-VAL(xfin)*185/1024 to kbytes
STORE CHR(27)+")" TO xinv
STORE CHR(27)+"(" TO xnor
STORE ' / / ' TO mdate
STORE ' ' TO xpaper
ERASE
@ 1,30 SAY xinv+" FAMILY RECORDS "+xnor
@ 1,0 SAY "No. of Records "+xfin
@ 1,58 SAY STR(INT(kbytes/3.86+.5),2)+"% ("+STR(kbytes,3)+" Kbytes) Free"
@ 10,20 SAY "To-day's Date (dd/mm/yy) ? "
@ 13,26 SAY "<U>S or <A>4 Paper? < >"
DO WHILE $(mdate,2,1)=' ' .OR. $(mdate,5,1)=' '.OR. @(' ',$(mdate,7,2)) # 0
@ 10,47 GET mdate PICTURE "99/99/99"
READ
ENDDO
DO WHILE @(xpaper,'AU') = 0
@ 13,47 GET xpaper PICTURE "!"
READ
ENDDO
SET date TO &mdate
SELECT SECONDARY
USE a:notes
SELECT PRIMARY
DO main