home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware 1 2 the Maxx
/
sw_1.zip
/
sw_1
/
COMM
/
RECALL40.ZIP
/
RECALL.PRG
< prev
next >
Wrap
Text File
|
1992-03-10
|
1KB
|
58 lines
* RECALL.PRG written by Michael MacDonald 10/01/91, revised 03/10/92
*
SET TALK OFF
SET CURSOR OFF
IF ISCOLOR()
SET COLOR to W/B
ENDIF
CLEAR
num=0
count=0
@ 1,20 SAY "RECALL v4.0 by Michael MacDonald (c)1992"
@ 2,6 SAY "A program to recall all deleted files from ROBOCOMM's new files list"
@ 4,6 SAY "░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░"
DO CASE
CASE FILE("new30.dbf")
USE NEW30
@ 7,6 SAY "Using NEW30.DBF"
CASE FILE("new40.dbf")
USE NEW40
@ 7,6 SAY "Using NEW40.DBF"
OTHERWISE
@ 7,6 SAY "Can't find NEWxx.DBF"
?
SET CURSOR ON
QUIT
ENDCASE
msize=RECCOUNT()
@ 8,6 SAY "Restoring all deleted records"
DO WHILE .NOT. EOF()
num=num+1
line=INT((num/msize)*68)
IF line>0
@ 4,5+line SAY "█"
ENDIF
IF msize < 68 .AND. line < 68
@ 4,6+line SAY "█"
ENDIF
IF DELETED()
count=count+1
@ 9,6 SAY "Undeleting -->"
@ 9,21 SAY file_name
RECALL
ENDIF
SKIP
ENDDO
@ 9,1 SAY " "
IF COUNT>0
? LTRIM(STR(count))+" deleted files recalled"
ELSE
? " No deleted files found"
ENDIF
SET CURSOR ON
?
CLOSE ALL
QUIT
*
* EOF RESTORE.PRG