home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
misc
/
lotopro.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-10-18
|
5KB
|
165 lines
echo off
cls
:HelpCheck
if "%1"=="" goto help
:FloppyCheck
if "%1" == "A:" goto FloppyError
if "%1" == "a:" goto FloppyError
if "%1" == "B:" goto FloppyError
if "%1" == "b:" goto FloppyError
:ShowDrive
set direct=%2
if "%2"=="" set direct=\LOTTO
cd %1%direct%
cls
echo
echo LOTTO PROPHECY 3.0 INSTALLATION
echo
if exist %1pick30.exe goto Exists
echo The selected path for Lotto Prophecy 3.0 is:
echo
echo %1%direct%
echo
echo You may see an "Unable to create directory" message if the
echo directory is already present on your hard drive. This is only a
echo warning; the installation will continue successfully.
echo
echo Press any key to continue the installation or a ^C (the CONTROL
echo and C keys at the same time) to abort the installation.
pause > nul:
echo
:Install
md %1%direct%
echo Please wait, copying files ...
pro30 /e%1%direct%
if errorlevel 1 goto CopyError
docs /e%1%direct%
if errorlevel 1 goto CopyError
dbfiles /e%1%direct%
if errorlevel 1 goto CopyError
cd %1%direct%
%1
set direct=
%1
set direct=
echo
echo Lotto Prophecy 3.0 has been installed. Type PICK6 at the
echo DOS prompt to start the program.
goto Exit
:help
echo To install Lotto Prophecy 3.0 on a floppy system type
echo INSTALL with either the drive identifier A: or B: WITHOUT
echo A DIRECTORY NAME.
echo
echo To install Lotto Prophecy 3.0 on your hard drive type A:
echo or B: to select the floppy drive containing the Lotto Prophecy
echo 3.0 distribution disk. Press a carriage return to select this
echo drive. Then type INSTALL followed by the hard drive identifier
echo to receive the program. For example:
echo A:
echo INSTALL C:
echo The default directory will be LOTTO. If you would like to change
echo the default directory, you may enter the new directory after your
echo drive identifier. For example:
echo INSTALL C: \PRO
echo The SPACE MUST BE PRESENT BETWEEN THE DRIVE AND DIRECTORY or the
echo install will not complete successfully.
echo
echo The installation can be aborted at any time by pressing a ^C (the
echo CONTROL and C keys at the same time).
goto Exit
:FloppyError
echo Lotto Prophecy 3.0 needs two 360k 5 1/4 floppy's or one
echo high density 5 1/4, or one 3 1/2 floppy standard or high
echo density. Lotto Prophecy requires at least 500k of disk space
echo
echo PUSH ANY KEY TO CONTINUE if you have your blank formatted
echo floppy's ready. Or a ^C, (the CONTROL and C keys at the same
echo time) to ABORT.
echo
pause > nul:
echo
echo The installation can be aborted at any time by pressing a ^C
echo (the CONTROL and C keys at the same time).
echo
echo Please wait, copying files ...
echo
DOCS /e%1%
if errorlevel 1 goto CopyError
DBFILES /e%1%
if errorlevel 1 goto CopyError
echo
echo If your are using 360k 5 1/4 floppy's insert another floppy NOW.
echo PUSH ANY KEY TO CONTINUE.......
echo
pause > nul:
echo Please wait, copying files ...
echo
pro30 /e%1%
if errorlevel 1 goto CopyError
%1
%1
echo
echo Lotto Prophecy 3.0 has been installed. Type PICK6 at the
echo DOS prompt to start the program.
goto Exit
:Exists
echo
echo *** WARNING ***
echo
echo A previous copy of Lotto Prophecy exists on
echo your hard drive in %1%direct%.
echo
echo ALL DATABASE FILES WILL BE PRESERVED
echo
echo You will see an "Unable to create directory" message. This is
echo only a warning; the installation will continue successfully.
echo
echo Press any key to continue the installation or a ^C (the CONTROL
echo and C keys at the same time) to abort the installation.
pause > nul:
echo
echo One Moment...........Checking HARD-DISK.................
if exist %1pick6.bat del %1pick6.bat
if exist %1pick30.exe del %1pick30.exe
if exist %1pick30.sys del %1pick30.sys
if exist %1pick30.doc del %1pick30.doc
if exist %1read.me del %1read.me
goto Install
:CopyError
echo
echo An error occurred creating the specified directory, or copying one
echo of the Lotto Prophecy 3.0 files to your hard-disk or floppy.
echo At least 500K of disk space must be available to install
echo Lotto Prophecy 3.0. CHKDSK can be used to verify that sufficient
echo space is available.
:Exit
echo
echo