@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 - GET.BAT
echo -
echo -   to get matching contents_signature(s)
echo -
echo -   for explanation, see FWKCS112.REF, option /g
echo -
echo -  Usage:
echo -
echo -   GET contentsignature "<enter>"  ; this accepts a contents_signature
echo -      as a single string, with all the blank spaces filled in with zeros.
echo -
echo -   GET filename.ext "<enter>"  ; this accepts a filename.ext (with path).
echo -
echo -   GET as_above outfile "<enter>" ; this sends the result to OUTFILE.
echo -
goto end
:aa
if "%1" == "" goto nd
if "%2" == "" goto show
if exist %1 goto file
echo %1|fwkcs /g > %2
goto end
:file
fwkcs /1 %1|fwkcs /g > %2
goto end
:show
if exist %1 goto file1
echo %1|fwkcs /g
goto end
:file1
fwkcs /1 %1|fwkcs /g
goto end
:nd
echo -
echo -  Nothing to do!
goto usage
: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
