home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Share Gallery 1
/
share_gal_1.zip
/
share_gal_1
/
UT
/
UT145.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-11-19
|
10KB
|
187 lines
@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