@echo off
if "%2" == "..1.12" goto us1
cls
echo - For use with FWKCS(TM) Contents_Signature System, Version 1.12.
echo - (C)Copyright Frederick W. Kantor 1990-1991. All rights reserved.
echo -
:us1
echo -  AVONLY.BAT to prepare and, optionally, run TOREJECT.BAT, for removing
echo -             non_AV files from AV_zipfiles.                    ~~~~~~~~
echo -
echo -             AVONLY uses FINDUNAV.BAT and TOREJECT.BAS.
echo -
echo -  This program is for use in your \cs subdirectory,
echo -  after CSLIST.SRT has been created or revised.
echo -  (See SETUP.112, section 4.)
echo -
echo - Usage:
echo -
echo -      AVONLY "<enter>"
echo -
if "%1" == "/*" goto us2
echo -
echo -     To quit, press Ctrl+C, then y
echo -
pause
if exist toreject.tmp del toreject.tmp > nul
if exist toreject.bat del toreject.bat > nul
if exist !^#^!#@#.#@! attrib -r !^#^!#@#.#@! > nul
echo run findunav.bat > !^#^!#@#.#@!
call findunav
if exist !^#^!#@#.#@! del !^#^!#@#.#@! > nul
if not exist toreject.tmp goto help1
basica toreject > nul
if exist toreject.bat goto aa
gwbasic toreject > nul
if exist toreject.bat goto aa
basic toreject > nul
if exist toreject.bat goto aa
qbasic toreject < nul > nul
if exist toreject.bat goto aa
goto help2
:help1
echo -
echo -  did not succeed in running FINDUNAV.BAT
goto try
:help2
echo -
echo -  did not succeed in running TOREJECT.BAS
:try
echo -
echo -  Please check your setup (see SETUP.112),
echo -
echo -  and
echo -
echo -        Please try again.
if exist toreject.tmp del toreject.tmp > nul
goto end
:aa
cls
echo -
echo -  Created TOREJECT.BAT.
echo -
echo -  TOREJECT.BAT is a removal program.
echo -                    ~~~~~~~
echo -  If you continue, selected file(s) may be removed from inside zipfile(s).
echo -                                           ~~~~~~~
echo -  If you would like to examine TOREJECT.BAT, press Ctrl+C, then y
echo -
echo -        (if you do quit, you can run TOREJECT.BAT separately,
echo -         by typing   TOREJECT "<enter>" )
echo -
echo -  If you do not have proper backups of your files, please quit.
echo -  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo -
echo -     To quit, press Ctrl+C, then y
echo -
pause
cls
call toreject
del toreject.bat > nul
copy toreject.tmp toreject.lst > nul
del toreject.tmp > nul
echo -
echo -  For list of removals attempted or performed, see TOREJECT.LST.
:end
echo -
:us2
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
