@echo off
rem 
rem +-----------------------------------------+
rem !   Port Finder Install Batch File        !
rem !   Copyright (c) 1990 mcTRONic Systems   !
rem !   Revised on: August 7, 1990            !
rem !   File Name: INSTALL.BAT                !
rem +-----------------------------------------+
rem 
cls
echo 浜様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
echo �                                                                       �
echo �  臼臼�  臼臼�  臼臼�  臼臼閲    臼臼� 臼閲 臼� 閲 臼臼�  臼臼� 臼臼�  �
echo �  越澑�  越澑�  越澑�   澑桎�    越烝�  越� 越閲越 越烝閲 越烝� 越澑�  �
echo �  臼臼�  越 越  臼閲�    越      臼閲   越  越越越 越  越 越烝  臼閲�  �
echo �  越烝�  臼臼�  越澑�    越      越烝  臼閲 越 臼� 臼臼槹 臼臼� 越澑�  �
echo �   �      烝烝   �  �     �       �     烝�  �  烝  烝烝   烝烝  �  �  �
echo �                                                                       �
echo �           The Number ONE Shareware COM and LPT Port Utility           �
echo �                                                                       �
if exist BH.COM bh ^
if errorlevel 1 goto dosok
goto baddosver
:dosok
if NOT exist INSTALL.BAT goto c_error
if "%1"=="" goto a_error
for %%c in (a: A: b: B:) do if %1==%%c goto d_error
for %%c in (Help HELP help ?) do if %1==%%c goto help
if NOT exist %1\nul goto b_error
:start
echo 麺様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
echo �   Install PORT FINDER in: %1\PORTFIND
echo 麺様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
echo �                                                                       �
echo � This batch file will install  Port Finder and all of its files on the �
echo � Hard Disk you have specified above.   Would you like to continue with �
echo � this installation? (Yes/No)                                           �
echo �                                                                       �
echo 藩様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
bh YN
if errorlevel 2 install help
cls
echo 浜様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
echo �                                                                       �
echo �  臼臼�  臼臼�  臼臼�  臼臼閲    臼臼� 臼閲 臼� 閲 臼臼�  臼臼� 臼臼�  �
echo �  越澑�  越澑�  越澑�   澑桎�    越烝�  越� 越閲越 越烝閲 越烝� 越澑�  �
echo �  臼臼�  越 越  臼閲�    越      臼閲   越  越越越 越  越 越烝  臼閲�  �
echo �  越烝�  臼臼�  越澑�    越      越烝  臼閲 越 臼� 臼臼槹 臼臼� 越澑�  �
echo �   �      烝烝   �  �     �       �     烝�  �  烝  烝烝   烝烝  �  �  �
echo �                                                                       �
echo �           The Number ONE Shareware COM and LPT Port Utility           �
echo �                                                                       �
echo 麺様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
echo �                                                                       �
if exist %1\portfind\pf.com goto update
echo �    Port Finder installation now in progress.  Please stand by ....    �
echo �                                                                       �
echo 藩様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
goto cont
:update
echo Y|del %1\portfind\*.* >nul
echo �       Port Finder update now in progress.  Please stand by ....       �
echo �                                                                       �
echo 藩様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
:cont
if NOT exist %1\PORTFIND\nul md %1\PORTFIND >nul
if exist pf.com copy *.com %1\PORTFIND >nul
if exist pf.sys copy pf.sys %1\PORTFIND >nul
if exist pf.pif copy *.pif %1\PORTFIND >nul
if exist pf.doc copy *.doc %1\PORTFIND >nul
if exist printdoc.bat copy *.bat %1\PORTFIND >nul
if exist boot13.com copy boot13.com %1\portfind >nul
%1\PORTFIND\
cd %1\PORTFIND
if not exist boot13.com goto cont2
md boot
cd boot
..\boot13 >nul
cd ..
del boot13.com
:cont2
CLS
echo 浜様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
echo �                                                                       �
echo �  臼臼�  臼臼�  臼臼�  臼臼閲    臼臼� 臼閲 臼� 閲 臼臼�  臼臼� 臼臼�  �
echo �  越澑�  越澑�  越澑�   澑桎�    越烝�  越� 越閲越 越烝閲 越烝� 越澑�  �
echo �  臼臼�  越 越  臼閲�    越      臼閲   越  越越越 越  越 越烝  臼閲�  �
echo �  越烝�  臼臼�  越澑�    越      越烝  臼閲 越 臼� 臼臼槹 臼臼� 越澑�  �
echo �   �      烝烝   �  �     �       �     烝�  �  烝  烝烝   烝烝  �  �  �
echo �                                                                       �
echo �           The Number ONE Shareware COM and LPT Port Utility           �
echo �                                                                       �
echo 麺様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
echo �                                                                       �
echo � Port Finder is now installed on your hard drive along with all of its �
echo � support files.   To print out the  Port Finder manual type "PRINTDOC" �
echo � at the DOS prompt.  If this is a Shareware copy please register  your �
echo � copy if you decide to use Port Finder.    To run Port Finder you must �
echo � change to the installed directory and enter "PF".      You should add �
echo � Port Finder to your AUTOEXEC.BAT file or your CONFIG.SYS file.    See �
echo � the Port Finder Documentation for more information.      Thank You !! �
echo �                                                                       �
echo 藩様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
echo    CHANGE TO "%1\PORTFIND" AND ENTER "PF"
echo 様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
:wantdoc
pause
cls
echo    浜様様様様様様様様様様様様様様様様様様様様様様様様様様融
echo    �                                                      �
echo    �   Would you like to run the  Port Finder  Document   �
echo    �   Display and Print Utility PRINTDOC NOW (Yes/No)?   �
echo    �                                                      �
echo    藩様様様様様様様様様様様様様様様様様様様様様様様様様様夕
bh yn
if errorlevel 2 goto done
if errorlevel 1 printdoc
GOTO DONE
:help
echo 麺様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
goto e_error
:baddosver
echo 麺様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
echo �                                                                       �
echo �  PROBLEM: Incorrect DOS Version.  DOS 3.3 or higher is required!      �
goto e_error
:a_error
echo 麺様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
echo �                                                                       �
echo �  This INSTALL.BAT file needs to know what  Hard Drive you want to     �
echo �  install  Port Finder  on.    ALL Hard Disk Drive Letters  can be     �
echo �  entered at the DOS prompt.  If your HARD DRIVE is C:, D:, E:, F:     �
echo �  or G: and the predefined subdirectory name PORTFIND  is OK, then     �
echo �  enter the Listed Hard Drive Letter to use, or press Q to Quit.       �
echo �                                                                       �
echo 藩様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
bh CDEFGQ
if errorlevel 6 goto nodrive
if errorlevel 5 INSTALL G:
if errorlevel 4 INSTALL F:
if errorlevel 3 INSTALL E:
if errorlevel 2 INSTALL D:
if errorlevel 1 INSTALL C:
:nodrive
cls
echo 浜様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
echo �                                                                       �
echo �  臼臼�  臼臼�  臼臼�  臼臼閲    臼臼� 臼閲 臼� 閲 臼臼�  臼臼� 臼臼�  �
echo �  越澑�  越澑�  越澑�   澑桎�    越烝�  越� 越閲越 越烝閲 越烝� 越澑�  �
echo �  臼臼�  越 越  臼閲�    越      臼閲   越  越越越 越  越 越烝  臼閲�  �
echo �  越烝�  臼臼�  越澑�    越      越烝  臼閲 越 臼� 臼臼槹 臼臼� 越澑�  �
echo �   �      烝烝   �  �     �       �     烝�  �  烝  烝烝   烝烝  �  �  �
echo �                                                                       �
echo �           The Number ONE Shareware COM and LPT Port Utility           �
echo �                                                                       �
echo 麺様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
echo �                                                                       �
echo �  PROBLEM: What is your TARGET Drive ?  A TARGET Drive is required!    �
goto e_error
:b_error
echo 麺様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
echo �                                                                       �
echo �  PROBLEM: The drive\directory Specified DOES NOT EXIST!               �
goto e_error
:c_error
echo 麺様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
echo �                                                                       �
echo �  PROBLEM: "INSTALL.BAT" is NOT Located in the Default Drive!          �
goto :e_error
:d_error
echo 麺様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
echo �                                                                       �
echo �  PROBLEM: Floppy Disk installation not required.  For Hard Disk Only! �
:e_error
echo �                                                                       �
echo �  Syntax: "INSTALL d:[\path]"                                          �
echo �                                                                       �
echo �  This INSTALL  batch file must be located in the default drive.  The  �
echo �  target disk drive d is a required parameter and must be a HARD DISK  �
echo �  DRIVE while the  \path  is optional.  The  final sub-directory will  �
echo �  always be named PORTFIND.  INSTALL C:   will install Port Finder in  �
echo �  C:\PORTFIND.    INSTALL C:\UTILITY  will  install  Port  Finder  in  �
echo �  C:\UTILITY\PORTFIND. Please rerun INSTALL with required parameters.  �
echo 藩様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
goto wantdoc
:done 
cls 