@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 -  CS_SPLIT.BAT to make sublists of contents_signatures.
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 -      CS_SPLIT "<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 >zcs_list.srt
find   "f" <cslist.srt >fcs_list.srt
find /v"c" <cslist.srt >ics_list.srt
find /v"z" <cslist.srt >ficslist.srt
cls
echo -  These files have been created:
echo -
echo -  ZCS_LIST.SRT  list of zipfile_contents_signature(s) (zcs) for zipfiles.
echo -
echo -  FCS_LIST.SRT  list of file_contents_signature(s) (fcs) for non_zip files.
echo -
echo -  ICS_LIST.SRT  list of contents_signature(s) (internal_cs (ics))
echo -                for files which are contained in zipfiles.
echo -
echo -  FICSLIST.SRT  list of contents_signature(s) (file_cs + internal_cs (fics))
echo -                for plain files and files in 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
