@echo off
if not "%1" == "/*" goto aa
if "%2" == "..1.12" goto us1
cls
:usage
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 -  NULSTART.BAT to set up the FWKCS(TM) Contents_Signature System, Ver. 1.12,
echo -               in subdirectory d:\cs,
echo -               with no entries in CSLIST.SRT and CSLIST1.SRT.
echo -
echo -               (See SETUP.112 and EXAMPLES.112.)
echo -
echo -  This is for use in the same subdirectory with FWKCS.COM.
echo -
echo -  Usage:
echo -
echo -       NULSTART d "<enter>"
echo -
echo -       where "d" is a single letter, without ":",
echo -       for the drive on which to put the \cs subdirectory.
goto end
:aa
cls
if "%1" == "" goto nd
md %1:\cs > nul
echo TEST > %1:\cs\!@#^#@!@.tmp
if not exist %1:\cs\!@#^#@!@.tmp goto nmd1
del %1:\cs\!@#^#@!@.tmp > nul
fwkcs %1:\cs\cslist.ndx /d1
fwkcs %1:\cs\cslist.srt /d2
fwkcs %1:\cs\cslist1.ndx /d3
fwkcs %1:\cs\cslist1.srt /d4
fwkcs /d
echo      ------
echo -     do defaults #1-4 on the right of the "=" look OK?
echo -     if not, press Ctrl+C, then  y
pause
cls
if exist %1:\cs\cslist.ndx attrib -r %1:\cs\cslist.ndx > nul
if exist %1:\cs\cslist.ndx del %1:\cs\cslist.ndx > nul
if exist %1:\cs\cslist.srt attrib -r %1:\cs\cslist.srt > nul
if exist %1:\cs\cslist.srt del %1:\cs\cslist.srt > nul
if exist %1:\cs\cslist1.ndx attrib -r %1:\cs\cslist1.ndx > nul
if exist %1:\cs\cslist1.ndx del %1:\cs\cslist1.ndx > nul
if exist %1:\cs\cslist1.srt attrib -r %1:\cs\cslist1.srt > nul
if exist %1:\cs\cslist1.srt del %1:\cs\cslist1.srt > nul
copy fwkcs.com %1:\cs > nul
%1:
cd %1:\cs
fwkcs /u
fwkcs /v
cls
dir
echo -
echo ------- Please put the copy of FWKCS which is here in this subdirectory
echo -  on your path. Its internal defaults have been set to point to the files
echo -  created in this subdirectory.....
echo ------- As a precaution, please make sure either that it is the ONLY copy
echo -  of FWKCS on your path, or that such copies come from this cloned copy
echo -  (the date and time on the program have been changed, and provide a simple
echo -  test; also, you can type "FWKCS/d<enter>" to check its defaults). For more
echo -  complicated configurations, please see EXAMPLES.112.
echo ------- Also, be sure that FWKCS can call QSORT, PKZIP, PKUNZIP, SCAN,
echo -  and, optionally, LIST. If you wish, set a path for FWKUPLD.LOG.
echo -  (I suggest that you run CHKDSK *.*, to see if any of these files contains
echo -  non_contiguous blocks; if so, please make each of these files contiguous.)
goto end
:nd
echo - Where should I put the \cs subdirectory?  I need a single drive letter...
goto helpr
:nmd1
echo - Did not succeed in making %1:\CS.  Please check your system, and...
:helpr
echo -
echo -           Please try again.
echo -
goto usage
:end
echo -
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
