@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 -  CSDUPS.BAT to find and count files which have
echo -             the same contents_signature(s),
echo -
echo -             prepare tabulated reports on file groupings.
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 -      CSDUPS "<enter>"
echo -
if "%1" == "/*" goto us2
echo -
echo -     To quit, press Ctrl+C, then y
echo -
pause
if exist cslist.srt goto bb
echo -
echo -  did not find CSLIST.SRT
goto end
:bb
cls
find   "z" <cslist.srt |fwkcs/1sm >zcs_dups
ren multcnt.rpt zcs_dups.rpt
find   "f" <cslist.srt |fwkcs/1sm >fcs_dups
ren multcnt.rpt fcs_dups.rpt
find /v"c" <cslist.srt |fwkcs/1sm >ics_dups
ren multcnt.rpt ics_dups.rpt
find /v"z" <cslist.srt |fwkcs/1sm >ficsdups
ren multcnt.rpt ficsdups.rpt
find "v" <cslist.srt | find /v "a" | find /v "z" >unavinav.lst
cls
echo -  These files have been created:
echo -
echo -  ZCS_DUPS  list of groups of zipfiles with matching
echo -            zipfile_contents_signature(s) (zcs).
echo -
echo -  ZCS_DUPS.RPT report tabulating zcs grouping.
echo -
echo -  FCS_DUPS  list of groups of non_zip files with
echo -            matching file_contents_signature(s) (fcs).
echo -
echo -  FCS_DUPS.RPT report tabulating fcs grouping.
echo -
echo -  ICS_DUPS  list of groups of files which are contained in zipfiles,
echo -            with matching contents_signature(s) (internal_cs (ics)).
echo -
echo -  ICS_DUPS.RPT report tabulating ics grouping.
echo -
echo -  FICSDUPS  list of groups of plain files and files in zipfiles,
echo -            with matching contents_signature(s) (file_cs + internal_cs (fics)).
echo -
echo -  FICSDUPS.RPT report tabulating fics groupings.
echo -
echo -  UNAVINAV.LST list of non_AV files found in AV_zipfiles.
: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
