DUPLICATE FILE CHECKING 101
===========================

Some times a little lesson on how NOT to be a total lame ass is
needed... there are a few boards that are run by sysops that think
they know everything about hslink.  To those I say.... delete this
file now.  DO NOT READ ON!!! (you may learn something)

Q: What is the purpose of a dup-file checking option?
A: To NEVER have the same file uploaded.  *period*

There are many sysops that 'think' that if the file is deleted then
they can't do anything about an incoming duplicate file... a file
that was either deleted or not wanted in the first place.  Well, those
sysops will be those that decide to take their piece-o-shit board down
because they can't control their file bases.  This is GOOD, the ELiTE
scene does not need these crappy boards to operate.

Ok, lets get on to the lesson....

==========================================================================

How to set up the duplicate file checking, correctly:
        
We will be using simple DOS commands to create an ongoing filelist that
will block any files contained in the list.

STEP 1: Creating the FILELIST
        Basically what we want is a text file that contains the individual
        filenames of the files received.
        Go to your directory where you keep your files... if multiple
        directories, go to any of them!  Now do a dir command with the
        /b switch.  C:\UPLOADS\>DIR /B
        Now we need to create the file.... redirect the output to a file
        instead of the screen.  C:\UPLOADS\>DIR /B >FILELIST.TXT
        Now use EDIT to view the file... EDIT FILELIST.TXT
        Wasn't that easy?

STEP 2: Create a batch file to add new files to your list.
        Here is a sample batch program to do this task... modify the
        paths to suit your needs... 

        *filelist.bat*
1       @echo off
2       cd\uploads
3       move %1 c:\uploads\temp
4       if exist c:\uploads\newfile.txt del c:\uploads\newfile.txt
5       dir /b c:\uploads\temp >c:\uploads\newfile.txt
6       if exist filelist.old del filelist.old
7       ren filelist.txt *.old
8       copy /a newfile.txt + filelist.old filelist.txt
9       move c:\uploads\temp\%1 \uploads

        Line 2-3: Move file to be processed to an empty directory (temp)
        Line 4: Delete the newfile.txt file.
        Line 5: Creates a ascii text file of the filename.
        Line 6-7: Deletes files from last process... and renames the master
                  filelist.txt to filelist.old.
        Line 8: Uses the COPY command to merge the newfile and the old list
                to create the new updated FILELIST.TXT.
        Line 9: Moves the file back to where it started...

IMPORTANT:  Call this batch file after doing your ZiPZaP (or other processor)
            That way, once a good file is received it is added to the filelist

STEP 3: Change HSLINK's configuration... Use the HSCONFIG program to
        add the FILELIST.TXT to the "Incoming File Duplication Checklist"

That's all.... your finished... and so is this file! l8r
        

