        ********************* PURGEDUP/CMD ************************
        *             Copyright 1988 by Mel Patrick               *
        *    Permission granted to distribute in Public Domain    *
        ***********************************************************


This little utility came about as a result of a better way of purging files
which have been backed up on a hard disk.

The usual scene goes like this :

You get a pile of files on your hard drive, eventually you back them up to
the floppy and then you have to select each of them and REMOVE them. If you
have backed up to a number of different floppies you have to make sure you
get it all right or "disaster" strikes and you'll forget to back one up and
lose it for good. Not nice.

In my own circumstance, I have ASM files on one disk, CMD files on another
and it never used to fail that I would type in the PURGE (Q=Y) and still
screw up and end up using UNKILL to restore a file I missed.

This handy little utility does my thinking for me. To use it, you only need
the disk you backed up to and the volume of the hard drive you backed up
from. Mount both and go...

Type in PURGEDUP and from you will be prompted for :

SOURCE : (0-7).....this is the drive which will be used as the SOURCE drive
                   to check for duplicate filenames. These files will NOT be
                   changed in anyway. They are only used for checking.

DESTINATION : 0-7..this is the drive where if a MATCH is found AND the file
                   has been backed up, the utility will remove it. If either
                   of these conditions is false, it will let you know that it
                   hasn't been backed up but it will NOT delete it.

Once these are entered, it will load in BOTH directories and start checking
for duplicate filenames. If a MATCH is found it will then check to make sure
that the file has been backed up. If it hasn't it will be skipped but if it
has it will be deleted. And so on....

As the files are deleted, the list will be printed so that you can get a
screen dump of the filenames if you need them.

If you are really cautious, you can use the QUERY option with this program.
On the initial command line type in : PURGEDUP,Q        ENTER
It will then ASK you for each match according to the normal rules for
purging duplicate files (i.e. must have been backed up).

While it was written with the hard drive user in mind it will work on floppies
as well. No difference other than it will work a little slower.

I have been using it for about 8 months and revised it about 5 months ago and
have never suffered any problems using it. I do have a standard Radio Shack
hard drive (10 meg) so I can't say if it would work on after market drives.
Best bet would be to try it.

If you want to test it, try it out on a couple of floppies to see how it works
before you tackle the HD.

PURGEDUP relies on a bit flag set in the directory which indicates if the
file has been backed up. When you do a CAT you'll notice that some of the
filenames have a + after them. i.e. FORMAT/CMD  +   etc....if your system
isn't maintaining these flags properly (and I can't imagine that) don't use
this program since it won't be able to tell when a file has been updated.
The + indicates that the file HAS NOT been backed up. Purgedup will skip
any file marked like this.

While not on the scale of one of my major applciations it has proved to be
very useful and hopefully others will be able to use this program. Please
ensure that this document file always goes with the /CMD file.

For other Model 4 software, my BBS contains over 100 files.
FastMaster BBS, (604) 594-7398 300/1200/2400  24hrs.

--------------------------------

Mel Patrick

