FILCHECK for Turbo V2 (C) Paul Baker @ The Tavern BBS Version 2.4 I can be contacted at the following addresses 2:440/108.0 51:502/100.0 90:102/140.0 100:1011/0.0 or directly on 44-(0)81 445-6514 Based on an idea from Kevin Osborne , with thanks for Beta Testing it for me. ------------------------ <| FILCHECK is FREEWARE |> ------------------------ Place FILCHECK.PRG and FILCHECK.RSC in your main BBS folder, running the program as it is when you first receive it will let you do the following. What filcheck does is read your selected .FIL files , if a file is marked as available for download then it will scan the the files you actually have in that area until it finds the file. If it doesn't find the file it will mark it as off-line in the .FIL . If the file is found but the file size in the .FIL is different from the actual file size , then the .FIL entry will be changed to match the actual file size. If the file is marked as off-line in the .FIL and the program finds the file on disk then it will put the file back on-line again. If you leave 'Test All Areas' on by accident or you wish to abort half way through checking a Group of .FIL files , Hit CONTROL Q , the program will then stop scanning the .FIL files after it has completed the current one. If you wish to run FILCHECK from a batch file , pass the parameter BATCH to it and it will automatically scan ALL the BBS's FILs' and exit afterwards. Configuring FILCHECK: ********************* You will notice the CONFIG button on the main Startup Screen, clicking on this will bring up a second screen, there are many options available here . Touch Date on addition. ----------------------- If you use the auto-restore option (more about that later) or FILCHECK notices that you have files marked as off-line but they are on the drive then files will be restored to the file areas. Shold you wish the files to be given a new upload date when this happens then highlight this button , it makes the upload date the current date. You should also highlight this option if you use the Automatic Restore option (see later text). Check For Old Files ------------------ Highlighting this will make FILCHECK count the number of days since the file was last downloaded or if it was never downloaded then since it was uploaded. If either of these values is greater than the number of days shown AND the file size in K is greater than the size shown then the files will be moved to the Folder shown If you turn on this option but do not choose a folder to store the files in the option is ignored by FILCHECK. Automatic Restore Folder ------------------------ If you define this folder then any files placed in that folder will be added back into the BBS if all the following conditions apply. 1. If filcheck Scans the area where this file was placed off-line from. 2. If the .FIL entry is marked . 3. If the Name and File size are the same as the file in the folder. It is a useful feature if you don't know where on your BBS an off-line file came from , but it is a lot slower than placing it in the right file area and getting FILCHECK to just make the file on-line again. Store New Files --------------- Highlighting this will make FILCHECK add any files to the BBS that are in the current file folder it is checking if they do not have an entry in the BBS's .FIL file. Changing the default Uploader, Access Level and description will cause these values to be used in the .FIL entry. Logfile ------- Highlighting this option will make FILCHECK write to a logfile (FILCHECK.1) all the text that is shown in the bottom status bars as it runs. Changing the Generation Number wil vary the number of old logs it will keep before deleting them. If there is no path chosen then it will not store any log files regardless of what state the on/off button is set to. IMPORTANT : Any options you enter via the config button will be used if you run FILCHECK under BATCH mode. If you have two fil entries for the same file and only one actual file on your system then the second .FIL entry will be marked off-line. Using Store New Files , if you have two files with the same name in the same download area on different drives ,but only one .FIL entry , a new .FIL entry will be added for the second file , you can then remove the second entry and one of the files will be deleted leaving you with one .FIL entry for one file. * Please note * I have tried to make this program as fast as possible , but each extra option you use will add a small overhead to the time taken for each scan. To save on Disk access , the directory of each folder is now read into memory and the only disk actions after that are to check file size , scan all drives for a file that is offline to make sure it actually IS offline ,the updating of .FIL entries and the moving of files from one folder/drive to another. There is currently room for 3000 files PER download area , if you have more than this it will not work , if so contact me and I'll see if I can increase it. Stick with it as it will make sure your .FIL files are always up-to-date, I ran a check on the whole BBS , not only did this program find 15 files marked off-line that were actually still on the drives but it found 43 files where the .FIL entry's size was incorrect and 16 files where I had 2 .FIL entries for the same file as well as 8 duplicate files with only 1 .FIL entry. I now run this program in my daily.bat where for nearly 2,500 files in 20 directories on 11 drives it takes about 5 mins with ALL of the options running. DISCLAIMER ---------- You use this program totally at you own risk , I cannot be held resposible for any problems either directly or indirectly caused by this utility.