echo off
if not exist %1\nul md %1
if not exist %1\nul goto dir_error
cls
echo.
echo.  ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ°
echo.  Û                                                             Û°°
echo.  Û     LOAN MASTER requires that the CONFIG.SYS file have      Û°°
echo.  Û     a files statement like "FILES=30". 30 Is the minimum    Û°°
echo.  Û     number. If you are using windows or a newtork, it       Û°°
echo.  Û     should be much larger, say 91. Be sure it is an odd     Û°°
echo.  Û     number. You may use the DOS EDIT program to modify      Û°°
echo.  Û     this file. See your DOS manual for more details.        Û°°
echo.  Û                                                             Û°°
echo.  Û     If you forget, or omit this step, LOAN MASTER will      Û°°
echo.  Û     warn you that you do not have enough file handles       Û°°
echo.  Û     and will then quit. It will not run.                    Û°°
echo.  Û                                                             Û°°
echo.  Û                                                             Û°°
echo.   °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
echo.
pause
cls
echo -
echo -  ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
echo -  ³                                                             ³
echo -  ³                                                             ³
echo -  ³         Copying the LOAN MASTER ACCOUNTING SYSTEM           ³
echo -  ³                                                             ³
echo -  ³                                                             ³
echo -  ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
echo -
PKUNZIP LMMENU %1
cls
echo -
echo -
echo -  ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
echo -  ³                                                             ³
echo -  ³                                                             ³
echo -  ³         Verifying the files!                                ³
echo -  ³                                                             ³
echo -  ³                                                             ³
echo -  ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
echo -
echo -
if not exist %1\lmloan.dbf goto fail1
if not exist %1\lmtran.dbf goto fail1
if not exist %1\lmhelp.dbf goto fail1
if not exist %1\lmhelp.dbt goto fail1
if not exist %1\lmparm.dbf goto fail1
if not exist %1\lmaccrue.dbf goto fail1
if not exist %1\lmtaccr.dbf goto fail1
if not exist %1\lmmenu.exe goto fail1
pause
cls
echo -
echo -
echo -
echo -   ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
echo -   ³                                                               ³
echo -   ³   Don't forget to install the Customer Information System     ³
echo -   ³                                                               ³
echo -   ³   It is on a separate disk and has its own install menu.      ³
echo -   ³                                                               ³
echo -   ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
echo -
echo -
echo -
pause
cls
echo -
echo -
echo -   ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
echo -   ³                                                                        ³
echo -   ³     The LOAN PROCESSING SYSTEM is now installed ...                    ³
echo -   ³                                                                        ³
echo -   ³     To Start the program, log on to the hard disk subdirectory         ³
echo -   ³     you specified ant type the command:                                ³
echo -   ³                                                                        ³
echo -   ³     LMMENU (enter)                                                     ³
echo -   ³                                                                        ³
echo -   ³     To access the Customer information module, log on to the hard disk ³
echo -   ³     subdirectory and type the command:                                 ³
echo -   ³                                                                        ³
echo -   ³     CIMENU  (enter)                                                    ³
echo -   ³                                                                        ³
echo -   ³              (You must install the CIF before you can access it!)      ³
echo -   ³                                                                        ³
echo -   ³                                                                        ³
echo -   ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
echo -
echo -   (Your directory was  %1 )
goto end
:dir_error
echo -
echo -
echo -   ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
echo -   ³                                                                        ³
echo -   ³     The installation process failed!                                   ³
echo -   ³                                                                        ³
echo -   ³     The installation program cannot find or create the directory       ³
echo -   ³     specified on the command line. The directory does not need to      ³
echo -   ³     exist before running the program but the name of the directory     ³
echo -   ³     MUST be a valid DOS pathname and the Drive letter MUST be a        ³
echo -   ³     valid disk drive on your system. DO NOT INCLUDE THE FINAL "\"      ³
echo -   ³                                                                        ³
echo -   ³     If you are installing the system on a network drive, you must      ³
echo -   ³     have the necessary rights and permissions for the network.         ³
echo -   ³                                                                        ³
echo -   ³                                                                        ³
echo -   ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
echo -
echo -
echo     Unable to find or create - %1
echo -
echo -
pause
:fail1
cls
echo -
echo -
echo -
echo -   ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
echo -   ³                                                                        ³
echo -   ³     The installation process failed!                                   ³
echo -   ³                                                                        ³
echo -   ³                                                                        ³
echo -   ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
echo -
goto end
:nodir
cls
echo.
echo.  ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ GENERIC INSTALL INSTRUCTIONS ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ°
echo.  Û                                                             Û°°
echo.  Û    This is the generic install program. It requires         Û°°
echo.  Û    the name of the disk and directory on the command        Û°°
echo.  Û    line like this:                                          Û°°
echo.  Û                                                             Û°°
echo.  Û    At the A: prompt, type:                                  Û°°
echo.  Û                                                             Û°°
echo.  Û    INSTALL  D:\LOANS                                        Û°°
echo.  Û                                                             Û°°
echo.  Û    Where D: is the drive letter and \LOANS is the name      Û°°
echo.  Û    of the directory in which you want the system installed. Û°°
echo.  Û    If you are familiar with path names, do not type the     Û°°
echo.  Û    final backslash "\".                                     Û°°
echo.  Û                                                             Û°°
echo.  Û    The drive and directory can be any valid DOS drive       Û°°
echo.  Û    and path on your system. If the path does not exist      Û°°
echo.  Û    it will be created. NOTE THAT THERE ARE NO SPACES        Û°°
echo.  Û    between the drive letter and the path.                   Û°°
echo.  Û                                                             Û°°
echo.   °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
echo.
pause
CLS
echo -
echo -   ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
echo -   ³                                                                        ³
echo -   ³     Please try again...                                                ³
echo -   ³                                                                        ³
echo -   ³     INSTALL D:\PATHNAME                                                ³
echo -   ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
echo -
:end
