@echo off
if not "%1" == "/*" goto aa
if "%2" == "..1.12" goto us1
cls
goto us0
:usage
echo -
:us0
echo - For use with FWKCS(TM) Contents_Signature System, Version 1.12.
echo - (C)Copyright Frederick W. Kantor 1991. All rights reserved.
echo - Your use of this program is at solely your own risk.
echo -
:us1
echo - PRECHECK.BAT
echo -
echo -    To pre_check contents_signatures obtained from a bulletin
echo -    board system against those for files on your own system,
echo -    to avoid downloading duplicates.
echo -
echo -  You must have already installed the FWKCS(TM) Contents_Signature
echo -   System on your computer system, and created its reference files.
echo -
echo -  See PRECHECK.DOC, SETUP.112, and FWKCS112.REF.
echo -
echo - Usage:
echo -
echo -   PRECHECK Captured_directory Nonmatch "<enter>"
goto end
:aa
if "%1" == "" goto help0
if "%2" == "" goto help1
if "%1" == "%2" goto help2
if not exist %1 goto help3
if exist %2 goto help4
FWKCS %1 /a1.2 %2
echo -
echo - For each filename (and associated description) in %1
echo -            which has been passed into output file %2,
echo -   a matching contents_signature was not found here.
echo -
echo - This precheck only works on directories which have this special
echo -   contents_signature information, in the format provided by
echo -   the FWKCS(TM) Contents_Signature System, Version 1.10 or later.
goto end
:help0
echo -
echo - Nothing to do!
goto usage
:help1
echo -
echo - I also need to have the FILENAME.EXT to use for the output file.
goto try
:help2
echo -
echo - The output file must be different from the input file.
goto try
:help3
echo -
echo - did not find  %1
goto try
:help4
echo -
echo - the output file "%2" already exists. First delete it, and then
:try
echo -
echo -   Please try again...
goto usage
:end
echo -
if not "%2" == "..1.12" goto zz
if exist QUERYFLA.GUP attrib -r QUERYFLA.GUP > nul
if exist QUERYFLA.GUP del QUERYFLA.GUP > nul
:zz
