home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
MBUG
/
MBUG102.ARC
/
RECOVER.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
3KB
|
86 lines
*RECOVER.PRG
* A PROGRAM TO CLEAR THE WORKING FILES. THIS PROGRAM ACTUALLY SAVES DISK SPACE.
ERASE
SET TALK OFF
STORE '~' TO DEC
DO WHILE DEC <>' '
ERASE
@ 2,0 SAY '*****************************************************************'
@ 3,0 SAY ' RECOVER PROGRAM .. '
@ 4,0 SAY ' THIS PROGRAM SAVES DISK SPACE '
@ 6,0 SAY ' PRESS TO DO '
@ 7,0 SAY ' 1 START '
@ 8,0 SAY ' R TO ABORT AND RETURN '
@ 11,0 SAY '****************************************************************'
SET TALK OFF
WAIT TO DEC
STORE !(DEC) TO DEC
DO CASE
CASE DEC='R'
RETURN
ENDCASE
ERASE
?? CHR(07)
? 'PLEASE NOTE THAT THIS PROGRAM DESTROYS DATA IN THE TRANSFER PROCESS'
? 'ENTER THE CODE TO CONTINUE THIS PROGRAM THEN PRESS RETURN'
? ':'
SET TALK OFF
SET CONSOLE OFF
ACCEPT TO PASSWORD
IF PASSWORD <> DATE()
SET CONSOLE ON
? ' ******************** PASSWORD INCORRECT ********************'
STORE 100 TO WAIT
DO WHILE WAIT<>0
STORE WAIT-1 TO WAIT
ENDDO
RETURN
ENDIF
SET CONSOLE ON
ERASE
? ' ***************** PASSWORD CORRECT *******************'
?? CHR(07)
***********************************
USE DATARCH
COPY TO DATA2 ALL FOR SPECIAL
USE
DELETE FILE DATARCH
USE
RENAME DATA2 TO DATARCH
********************************
USE DATAFILE
COPY TO DATA1 ALL FOR .NOT. PACKED .AND .NOT. INVOICED .OR. .NOT. PACKED
USE
DELETE FILE DATAFILE
USE
RENAME DATA1 TO DATAFILE
*****************
USE DATATEMP
COPY TO DATA3 ALL FOR .NOT. PACKED .AND. .NOT. INVOICED .OR. .NOT. PACKED
USE
DELETE FILE DATATEMP
RENAME DATA3 TO DATATEMP
*********************
?? CHR(07)
USE HOLDATA
COPY TO DATA4 ALL FOR .NOT. PACKED .AND. .NOT. INVOICED .OR. .NOT. PACKED
USE
DELETE FILE HOLDATA
USE
RENAME DATA4 TO HOLDATA
*************************************
USE LEDARCH
COPY STRU TO DATA5
USE
DELETE FILE LEDARCH
RENAME DATA5 TO LEDARCH
******************************
USE LEDGER
COPY TO DATA6 ALL FOR .NOT. USEDSTMT
USE
DELETE FILE LEDGER
RENAME DATA6 TO LEDGER
enddo
RETURN
"n₧ "ADELAIDE, SOUTH AUSTRALIA , 5000 LINE5 ├"Æ₧ "(08) 211 7575 SLINE1 ├╢₧ PD SPTY LTD SLINE2 ├╚₧ (INC IN S. AUST)SLINE3 ├┌₧ 433 MORPHETT ST.SLINE4 ├∞₧ ADELAIDE S.A. 5000SLINE5 ├ ƒ (08) 211 7575 COMPRESS ├ƒ CHR(15)NORMAL ├ƒ CHR(18)├*ƒ CHR(27)+'[1'+CHR(119)
CASE DEC=2