home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boston 2
/
boston-2.iso
/
DOS
/
PROGRAM
/
BASIC
/
POWBASIC
/
LIBRARY3
/
OPSYS1.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-11-15
|
10KB
|
171 lines
@echo off
rem
rem +-----------------------------------------+
rem ! OPSYS Install Batch File !
rem ! Copyright (c) 1990 mcTRONic Systems !
rem ! Revised on: August 31, 1990 !
rem ! File Name: INSTALL.BAT !
rem +-----------------------------------------+
rem
cls
echo ╔═══════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ ▒▒▒▒▒▄ ▒▒▒▒▒▄ ▒▒▒▒▒▄ ▒▄ ▒▄ ▒▒▒▒▒▄ ║
echo ║ ▒█▀▀▒█ ▒█▀▀▒█ ▒▀▀▀▀▀ ▒█▄▄▒█ ▒▀▀▀▀▀ ║
echo ║ ▒█ ▒█ ▒▒▒▒▒█ ▀▀▀▒▄ ▒▒▒█▀ ▀▀▀▒▄ ║
echo ║ ▒▒▒▒▒█ ▒█▀▀▀▀ ▒▒▒▒▒█ ▒█▀ ▒▒▒▒▒█ ║
echo ║ ▀▀▀▀▀ ▀ ▀▀▀▀ ▀ ▀▀▀▀▀ ║
echo ║ ║
echo ║ An Operating System Multi-Configuration Menu Utility ║
echo ║ ║
: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 OPSYS in: %1\OPSYS
echo ╠═══════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ This batch file will install OPSYS and all of its files on the Hard ║
echo ║ Disk you have specified above. Would you like to continue with this ║
echo ║ installation? (Yes/No) ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════════════════════╝
bh YN
if errorlevel 2 install help
cls
echo ╔═══════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ ▒▒▒▒▒▄ ▒▒▒▒▒▄ ▒▒▒▒▒▄ ▒▄ ▒▄ ▒▒▒▒▒▄ ║
echo ║ ▒█▀▀▒█ ▒█▀▀▒█ ▒▀▀▀▀▀ ▒█▄▄▒█ ▒▀▀▀▀▀ ║
echo ║ ▒█ ▒█ ▒▒▒▒▒█ ▀▀▀▒▄ ▒▒▒█▀ ▀▀▀▒▄ ║
echo ║ ▒▒▒▒▒█ ▒█▀▀▀▀ ▒▒▒▒▒█ ▒█▀ ▒▒▒▒▒█ ║
echo ║ ▀▀▀▀▀ ▀ ▀▀▀▀ ▀ ▀▀▀▀▀ ║
echo ║ ║
echo ║ An Operating System Multi-Configuration Menu Utility ║
echo ║ ║
echo ╠═══════════════════════════════════════════════════════════════════════╣
echo ║ ║
if exist %1\opsys\OPSYS.EXE goto update
echo ║ OPSYS installation now in progress. Please stand by .... ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════════════════════╝
goto cont
:update
echo ║ OPSYS update now in progress. Please stand by .... ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════════════════════╝
:cont
if NOT exist %1\OPSYS\nul md %1\OPSYS >nul
copy *.* %1\OPSYS >nul
%1\OPSYS\
cd %1\OPSYS
IF EXIST INSTALL.BAT DEL INSTALL.BAT
IF EXIST OPSYS.EXE DEL OPSYS.EXE
if exist OPSYS.BIN RENAME OPSYS.BIN OPSYS.EXE
CLS
echo ╔═══════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ ▒▒▒▒▒▄ ▒▒▒▒▒▄ ▒▒▒▒▒▄ ▒▄ ▒▄ ▒▒▒▒▒▄ ║
echo ║ ▒█▀▀▒█ ▒█▀▀▒█ ▒▀▀▀▀▀ ▒█▄▄▒█ ▒▀▀▀▀▀ ║
echo ║ ▒█ ▒█ ▒▒▒▒▒█ ▀▀▀▒▄ ▒▒▒█▀ ▀▀▀▒▄ ║
echo ║ ▒▒▒▒▒█ ▒█▀▀▀▀ ▒▒▒▒▒█ ▒█▀ ▒▒▒▒▒█ ║
echo ║ ▀▀▀▀▀ ▀ ▀▀▀▀ ▀ ▀▀▀▀▀ ║
echo ║ ║
echo ║ An Operating System Multi-Configuration Menu Utility ║
echo ║ ║
echo ╠═══════════════════════════════════════════════════════════════════════╣
echo ║ ║
echo ║ OPSYS is now installed on your hard drive along with all of its ║
echo ║ support files. To print out the OPSYS manual type "DOCUTIL" at the ║
echo ║ DOS prompt. If this is a Shareware copy please register your copy if ║
echo ║ you decide to use OPSYS. To run OPSYS you must change to the ║
echo ║ installed directory and enter "OPSYS". See the OPSYS Documentation ║
echo ║ for more information. Thank You ! ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════════════════════╝
echo CHANGE TO "%1\OPSYS" AND ENTER "OPSYS"
echo ═════════════════════════════════════════════════════════════════════════
pause
OPSYS /p:%1\opsys
:wantdoc
cls
echo ╔══════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Would you like to run the OPSYS Document, Display ║
echo ║ and Print Utility DOCUTIL NOW (Yes/No)? ║
echo ║ ║
echo ╚══════════════════════════════════════════════════════╝
bh yn
if errorlevel 2 goto done
if errorlevel 1 docutil
GOTO DONE
:help
echo ╠═══════════════════════════════════════════════════════════════════════╣
goto e_error
:a_error
echo ╠═══════════════════════════════════════════════════════════════════════╣
echo ║ ║
echo ║ This INSTALL.BAT file needs to know what Hard Drive you want to ║
echo ║ install OPSYS on. ALL Hard Disk Drive Letters can be entered at ║
echo ║ the DOS prompt. If your HARD DRIVE is C:, D:, E:, F:, or G: and ║
echo ║ the predefined subdirectory name \OPSYS is OK, then enter the ║
echo ║ 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 ║ An Operating System Multi-Configuration Menu 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 OPSYS. INSTALL C: will install OPSYS in C:\OPSYS. ║
echo ║ INSTALL C:\UTILITY will install OPSYS in C:\UTILITY\OPSYS. Please ║
echo ║ rerun INSTALL with required parameters. ║
echo ╚═══════════════════════════════════════════════════════════════════════╝
pause
goto wantdoc
:done
cls