@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 -
:us1
echo - Y.BAT   for finding matching contents_signatures for plain files
echo -           and for zipfiles.
echo -         It accessions new material into the system.
echo -         It prepares a report, MATCHING.RPT, which you have the
echo -           option to read, and have the option to delete or to keep.
echo -
echo - Usage:
echo -
echo -       Y filename.ext "<enter>"
echo -
echo - Note: A terse form, YT.BAT, can be made directly from FWKCS.COM.
echo -       The terse form does not provide on_line help.
echo -       It uses the error_logging capabilities of FWKCS.COM, and may
echo -         be called more efficiently from other .BAT programs.
echo -
echo -       To make terse_form YT.BAT, type  FWKCS /a2m "<enter>"
echo -
echo - for explanation, see FWKCS112.REF, Auxiliary Function 2.
goto sp
:aa
if "%1" == "" goto nd
if not exist %1 goto nf
fwkcs %1 /a2
goto end
:nd
echo -
echo -  Nothing to do!
goto usage
:nf
echo -
echo -  Did not find  %1 .
goto usage
:sp
echo -
:end
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
