echo off
if "%1"=="" goto nodir
if not exist %1\nul md %1
if not exist %1\nul goto dir_error
cls
echo.
echo.  ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ°
echo.  Û                                                             Û°°
echo.  Û     Mortgage Comp requires that the CONFIG.SYS file have    Û°°
echo.  Û     a files statement like "FILES=31". 31 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.  Û                                                             Û°°
echo.   °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
echo.
pause
if not exist %1\nul md %1
if not exist %1\nul goto dir_error
cls
echo -
echo -  ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
echo -  ³                                                             ³
echo -  ³                                                             ³
echo -  ³         Copying the MORTGAGE COMPARISON SYSTEM              ³
echo -  ³                                                             ³
echo -  ³                                                             ³
echo -  ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
echo -
PKUNZIP MORTCOMP %1
cls
echo -
echo -
echo -  ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
echo -  ³                                                             ³
echo -  ³                                                             ³
echo -  ³         Verifying the files!                                ³
echo -  ³                                                             ³
echo -  ³                                                             ³
echo -  ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
echo -
echo -

if not exist %1\MCHELP.DBF   goto fail1
if not exist %1\MCHELP.DBT   goto fail1
if not exist %1\MCMENU.EXE   goto fail1
if not exist %1\MCPARM.DBF   goto fail1
if not exist %1\MCPARM.FD    goto fail1
if not exist %1\SCHEDULE.BLK goto fail1
pause
cls
echo -
echo -
echo -   ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
echo -   ³                                                                        ³
echo -   ³     The MORTGAGE COMPARISON 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 -   ³     MCMENU (enter)                                                     ³
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 -
pause
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
