@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 - CSAMACS.BAT to create a \CSA Contents_Signature Activity place and
echo -             install macros in FWKCS.COM.
echo -
echo -            (Note: this does not install options g and z.
echo -             See SETUP.112 and FWKCS112.REF.)
echo -
echo - Usage:
echo -
echo -      CSAMACS d N "<enter>"
echo -
echo -      where  d  without a ":" is a single letter for the drive on which
echo -                to install the \CSA Contents_Signature Activity place.
echo -
echo -             N = 1 for a single user, with no bulletin board system.
echo -                 2 for a single local user, with a (multi_node) BBS.
echo -                 3 for multiple local users, with a (multi_node) BBS.
echo -
goto ng
:aa
if "%1" == "" goto help1
echo -
echo -
echo - Installing %1:\CSA Contents_Signature Activity place...
echo -
if "%2" == "1" goto ba
if "%2" == "2" goto bb
if "%2" == "3" goto bc
goto help2
:ba
fwkcs a18bc,%1:\csa\zcomb;f,%1:\csa\##cellar;j,%1:\csa\junkb;k0n2,1;o,oust;pwv /db
fwkcs b,%1:\csa\bav;e,%1:\csa\ziz;q,%1:\csa\potvirus;f,%1:\csa\##cellar; /dc
goto cc
:bb
fwkcs a18bc,%1:\csa\zcomb;f,%1:\csa\##cellar;j,%1:\csa\junkb;k0n2,1;o,oust;pwv /db
fwkcs b,%1:\csa\bav;e,%1:\csa\ziz;q,%1:\csa\potvirus;f,##cellar; /dc
goto cc
:bc
fwkcs a18bc,%1:\csa\zcomb;f,##cellar;j,%1:\csa\junkb;k0n2,1;o,oust;pwv /db
fwkcs b,%1:\csa\bav;e,%1:\csa\ziz;q,%1:\csa\potvirus;f,##cellar; /dc
:cc
fwkcs %1:\csa\fwkupld.log /da
fwkcs v1,%1:\csa\telsysop;t,%1:\csa\trashold;a18,,%1:\csa\old;n2,1,%1:\csa\qsn;opw /dd
fwkcs iyj,%1:\csa\junk;h,%1:\csa\msg;k0ke,%1:\csa\enc;kf,%1:\csa\fzt; /de
fwkcs c,%1:\csa\zcom;v /df
md %1:\csa
md %1:\csa\msg
md %1:\csa\##cellar
md %1:\csa\bav
md %1:\csa\enc
md %1:\csa\fzt
md %1:\csa\potvirus
md %1:\csa\qsn
md %1:\csa\old
md %1:\csa\trashold
md %1:\csa\ziz
md %1:\csa\accepted
copy fwkcs.com %1:\csa > nul
copy fwkdg.com %1:\csa > nul
copy fwkdg108.bat %1:\csa > nul
del fwkdg108.bat > nul
copy fwkdg108.scr %1:\csa > nul
del fwkdg108.scr > nul
copy fwkhi.com %1:\csa > nul
copy dsa.com %1:\csa > nul
copy atx80cnt.bas %1:\csa > nul
del atx80cnt.bas > nul
copy atx80qwk.bas %1:\csa > nul
del atx80qwk.bas > nul
copy delvsqwk.bas %1:\csa > nul
del delvsqwk.bas > nul
copy dex80cnt.bas %1:\csa > nul
del dex80cnt.bas > nul
copy dex80qwk.bas %1:\csa > nul
del dex80qwk.bas > nul
copy dex80sp.bas %1:\csa > nul
del dex80sp.bas  > nul
copy upsysop.bas %1:\csa > nul
del upsysop.bas  > nul
copy add_g.bat %1:\csa > nul
del add_g.bat > nul
copy add_z_4.bat %1:\csa > nul
del add_z_4.bat > nul
copy add_z_56.bat %1:\csa > nul
del add_z_56.bat > nul
copy get.bat %1:\csa > nul
del get.bat > nul
copy revert.bat %1:\csa >nul
copy setfwkcs.bat %1:\csa >nul
copy setdrive.bat %1:\csa > nul
copy lookup.bat %1:\csa > nul
del lookup.bat > nul
copy rcrosref.bat %1:\csa > nul
del rcrosref.bat > nul
copy precheck.bat %1:\csa > nul
del precheck.bat > nul
copy fwklocal.bas %1:\csa > nul
del fwklocal.bas > nul
copy banav.bat %1:\csa > nul
del banav.bat > nul
copy listav.bat %1:\csa > nul
del listav.bat > nul
copy testav.bat %1:\csa > nul
del testav.bat > nul
copy exclude.bat %1:\csa > nul
del exclude.bat > nul
copy wipe.bat %1:\csa > nul
del wipe.bat > nul
copy delcsa.bat %1:\csa > nul
del delcsa.bat > nul
copy msgs.bat %1:\csa\msg > nul
del msgs.bat > nul
copy csam.bat %1:\csa > nul
del csam.bat > nul
copy contents.112 %1:\csa > nul
del contents.112 > nul
copy whatsnew.112 %1:\csa >nul
del whatsnew.112 >nul
copy history.112 %1:\csa >nul
del history.112 >nul
copy lookup.doc %1:\csa > nul
del lookup.doc > nul
copy precheck.doc %1:\csa > nul
del precheck.doc > nul
copy fwkcs112.doc %1:\csa > nul
del fwkcs112.doc > nul
copy fwkcs112.ref %1:\csa > nul
del fwkcs112.ref > nul
copy register.doc %1:\csa >nul
copy examples.112 %1:\csa > nul
del examples.112 > nul
copy recipes.112 %1:\csa > nul
del recipes.112 > nul
copy utils.112 %1:\csa > nul
del utils.112 > nul
copy setup.112 %1:\csa > nul
del setup.112 > nul
copy y.bat %1:\csa > nul
del y.bat > nul
copy accesion.bat %1:\csa > nul
del accesion.bat > nul
copy acceszip.bat %1:\csa > nul
del acceszip.bat > nul
copy lut.bat %1:\csa > nul
del lut.bat > nul
copy lutnote.bat %1:\csa > nul
del lutnote.bat > nul
if not exist #@!^!@#@.bat goto nsub
attrib +r *.* > nul
attrib -r cslist1.ndx > nul
attrib -r cslist1.srt > nul
attrib -r #@!^!@#@.bat > nul
del #@!^!@#@.bat > nul
:nsub
%1:
cd \csa
type zcomb > zcomb
type zcom > zcom
cls
fwkcs /a5m
attrib +r *.* > nul
attrib +r msg\msgs.bat > nul
goto end1
:help1
cls
echo -
echo - On which drive am I supposed to put the \CSA place?
goto try
:help2
cls
echo -
echo - I also need a single digit N (1 2 3) re system configuration.
:try
echo -
echo -           Please try again.
goto usage
:end1
echo -
echo - Installed %1:\CSA Contents_Signature Activity place, write_protected...
echo ----                        That's where you are now.
echo - The CSA on_line help menu is CSAM.BAT.  Usage:  CSAM "<enter>"
echo - To ask by NAME for on_line help from any .BAT or .COM program now installed
echo -   in \CSA, except PCBTEST.BAT, type its  NAME /* "<enter>".
echo -
echo - And I brought along some reading material...
echo -
echo -    CONTENTS.112  WHATSNEW.112  HISTORY.112        LOOKUP.DOC  PRECHECK.DOC
echo -
echo -    EXAMPLES.112  RECIPES.112   UTILS.112  SETUP.112
echo -
echo -    FWKCS112.DOC  FWKCS112.REF  REGISTER.DOC
echo -
echo - may I suggest that you look at LOOKUP.DOC?
echo -
echo -                                Welcome aboard.
echo -                                ~~~~~~~~~~~~~~~
echo - PS: remember to add  %1:\CSA  to your PATH. (see SETUP.112)
echo - Note to BBS Operators: a new PCBTEST.BAT has been created here;
echo - your message customization goes in the %1:\CSA\MSG subdirectory.
:ng
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
