home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
games
/
pipline.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1989-09-28
|
5KB
|
117 lines
echo off
cls
if "%1" == "" goto DriveNeeded
if %1 == c: goto MakeDirectory
if %1 == C: goto MakeDirectory
if %1 == d: goto MakeDirectory
if %1 == D: goto MakeDirectory
if %1 == e: goto MakeDirectory
if %1 == E: goto MakeDirectory
if %1 == f: goto MakeDirectory
if %1 == F: goto MakeDirectory
if %1 == g: goto MakeDirectory
if %1 == G: goto MakeDirectory
if %1 == h: goto MakeDirectory
if %1 == H: goto MakeDirectory
if %1 == i: goto MakeDirectory
if %1 == I: goto MakeDirectory
if %1 == j: goto MakeDirectory
if %1 == J: goto MakeDirectory
if %1 == k: goto MakeDirectory
if %1 == K: goto MakeDirectory
if %1 == l: goto MakeDirectory
if %1 == L: goto MakeDirectory
if %1 == m: goto MakeDirectory
if %1 == M: goto MakeDirectory
if %1 == n: goto MakeDirectory
if %1 == N: goto MakeDirectory
if %1 == o: goto MakeDirectory
if %1 == O: goto MakeDirectory
if %1 == p: goto MakeDirectory
if %1 == P: goto MakeDirectory
:InvalidDrive
echo "%1" is an invalid drive name. Please use the drive's letter
echo followed by a colon:
goto Example
:DriveNeeded
echo Please specify which drive to install Pipe Dream Sample on, for example:
:Example
echo
echo install c:
goto End
:MakeDirectory
echo ╔════════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Pipe Dream (TM) Hard Disk Install Utility ║
echo ║ Sample Version ║
echo ║ ║
echo ║ ║
echo ║ This program will install all of the Pipe Dream Sample files into a ║
echo ║ directory called "PIPES" on drive %1. If you do not wish to do this, ║
echo ║ then press Ctrl-C now. ║
echo ║ ║
echo ╚════════════════════════════════════════════════════════════════════════╝
echo
pause
echo
if exist %1\pipes\*.* goto DirectoryExists
mkdir %1\pipes
goto CopyFiles
:DirectoryExists
echo WARNING: The directory %1\PIPES already exists. Press Ctrl-C
echo now if you don't want to overwrite the contents of
echo that directory.
echo
pause
echo
:CopyFiles
echo Copying files to %1\PIPES...
copy pipedemo.exe %1\pipes > NUL
copy readme %1\pipes > NUL
copy intro.txt %1\pipes > NUL
copy *.pic %1\pipes > NUL
copy *.art %1\pipes > NUL
copy *.war %1\pipes > NUL
if not exist %1\pipes\pipedemo.exe goto InstallError
if not exist %1\pipes\logo.pic goto InstallError
if not exist %1\pipes\resivoir.art goto InstallError
if not exist %1\pipes\whip2.war goto InstallError
%1
cd %1\pipes
cls
echo ╔═════════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Pipe Dream Sample has been successfully installed onto your hard disk. ║
echo ║ ║
echo ║ To run Pipe Dream Sample, enter CD \PIPES ║
echo ║ then enter PIPEDEMO ║
echo ║ ║
echo ║ You can also start Pipe Dream Sample using the following options: ║
echo ║ ║
echo ║ C Use CGA graphics ║
echo ║ E Use EGA graphics ║
echo ║ V Use VGA graphics ║
echo ║ M Use MCGA graphics ║
echo ║ T Use TANDY graphics ║
echo ║ H Use Hercules graphics ║
echo ║ ║
echo ║ Example: PIPEDEMO E ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════════════════════╝
goto End
:InstallError
echo ERROR: Installation of Pipe Dream Sample into %1\PIPES was unsuccessful.
echo This might be because your hard disk is full. Pipe Dream Sample
echo needs at least 340K of free disk space.
:End
echo