home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug073.arc
/
GENELOGY.LBR
/
UNOTECPY.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
1KB
|
43 lines
* UNOTECOPY.CMD to copy Wordstar NOTES.TXT file to dBASE NOTES.DBF file.
@ 1,30
@ 1,30 SAY xinv+"Up-date Notes file"+xnor
@ 1,65 SAY "Date "+date()
SELECT PRIMARY
USE
SELECT SECONDARY
USE
@ 7,20 SAY CHR(27)+'Y'
SET DEFAULT TO b:
DO WHILE .NOT. FILE('B:NOTES.TXT')
@ 7,15 SAY 'Put WS NOTES.TXT disk in Drive B, then press <RETURN>'
SET CONSOLE OFF
WAIT
SET CONSOLE ON
ENDDO
RESET B:
SET DEFAULT TO A:
@ 7,15
@ 7,20 SAY "Please wait .... Updating file NOTES.DBF"
DELETE FILE a:notes.dbf
USE a:uoneline
COPY TO a:notes.dbf
USE a:notes
SET CONSOLE OFF
APPEND FROM b:notes.txt SDF
SET CONSOLE ON
SET DEFAULT TO B:
@ 7,20
@ 7,30 SAY "Up-date completed"
DO WHILE .NOT. FILE('FAMILY.DBF')
@ 9,15 SAY 'Replace FAMILY DATA disk in Drive B, then press <RETURN>'
SET CONSOLE OFF
WAIT
SET CONSOLE ON
ENDDO
RESET B:
SET DEFAULT TO A:
SELECT PRIMARY
USE b:family
@ 7,20 SAY chr(27)+'Y'
RETURN