home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Current Shareware 1994 January
/
SHAR194.ISO
/
dbase
/
bbpv3.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-08-21
|
3KB
|
99 lines
echo off
cls
if %1a == a goto noDrive
if %1 == a: goto start
if %1 == A: goto start
if %1 == b: goto start
if %1 == B: goto start
if %1 == c: goto start
if %1 == C: goto start
if %1 == d: goto start
if %1 == D: goto start
if %1 == e: goto start
if %1 == E: goto start
if %1 == f: goto start
if %1 == F: goto start
goto wrongdrive
:start
echo ╔═══════════════════════════════════════════════════════════════════════╗
echo ║ RanKel Software ║
echo ║ Black Book Plus Installation program ║
echo ║ ║
echo ║ This will create a directory called %1\BBPV3 on your disk, and ║
echo ║ will install Black Book Plus in that directory. If you don't ║
echo ║ wish to install Black Book Plus at this time press Ctrl+Break. ║
echo ╚═══════════════════════════════════════════════════════════════════════╝
pause
rem create \BBPV3 on the current drive.
echo
echo Creating directory %1\BBPV3
if exist %1\BBPV3\*.* goto direxists
md %1\BBPV3
rem make sure current drive contains the program disk
:1
if exist install.bat goto 2
echo
echo Make sure you are in the Drive and Directory that contains your new
echo Black Book Plus files!
goto errorDone
:2
rem copy program files
echo
echo Copying Black Book Plus files..........
copy BBPV3.EXE %1\BBPV3
copy BBPV3.DOC %1\BBPV3
copy BBPV3.PIF %1\BBPV3
copy BBPV3.ICO %1\BBPV3
copy REGISTER.DOC %1\BBPV3
copy VENDOR.DOC %1\BBPV3
copy INSTALL.BAT %1\BBPV3
if not exist %1\BBPV3\BBPV3.EXE goto installationError
rem installation was successful!
:installDone
cd %1\BBPV3
echo
echo Black Book Plus is now installed on your hard disk.
echo
echo To run type "BBPV3" now. To load as a TSR program
echo type "BBPV3 /L" now.
echo
%1
goto done
rem no drive letter followed by a colon.
:noDrive
echo
echo Installation Error: To install Black Book Plus on your hard disk, you
echo must specify the drive to install Black Book Plus onto. For example,
echo to install Black Book Plus on drive C, type "INSTALL C:" and press Enter.
goto errorDone
rem user specified invalid drive letter.
:wrongdrive
echo
echo Installation Error: The hard drive letter must be a letter from A to F,
echo and must be followed by a colon. For example, "INSTALL C:" will install
echo Black Book Plus on drive C.
goto errorDone
rem general installation error.
:installationError
echo
echo Installation Error: Perhaps there isn't enough space on your hard disk.
echo Black Book Plus installation requires at least 360k free space.
goto errorDone
rem \BBPV3 dir already exists.
:direxists
echo
echo **********************************************************************
echo Installation Error: The \BBPV3 directory already exists on this drive.
echo
echo You should copy the existing files to another disk or directory,
echo then try installing again.
echo
echo **********************************************************************
goto errorDone
rem goto here after an error is detected, to print a message and exit.
:errorDone
echo
echo Black Book Plus was not installed correctly.
:done