README.md
UNDELETE

Originally written by Richard Kirkman and appeared in July 1981 Decus
RSX11M SIG newsletter, THE MULTI-TASKER.

The function of this program is to attempt to recover a recently deleted
file.

The program will accept a command line with input and output disks (which
must be different) and an input UIC. It will then scan the input disk
indexfile for all deleted files with that UIC. Will print error message
(warning) if search of bitmap shows that a file block has been reused.
Will use IO.RLB from privledged task to read all blocks of the file and
then create new file in owners UIC on output device.

This program will only succeed in recovering a file, if the file header
has not been reused. It's optimum use would be when a single user
accidentally deletes a file and immediately stops all writing to the
volume, to avoid loosing either the file header or any of the other
blocks belonging to the deleted file.

COMMANDLINE FORMAT: "UND>DO:=DI:[grp,mbr]"

Where DO: is the output device, DI: is the input device
and the output and input devices are not the same.

OUTPUTS:
Places the undeleted file into the users current UIC on
the output device.

Build instructions:

MAC UNDEL,LS:LP=UNDEL
TKB>UNDEL/CP/PR:0,MP:LP=UNDEL
TKB>/
TKB>STACK=64
TKB>TASK=...UND
TKB>PRI=100
TKB>UIC=[1,1]
TKB>//