home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
173.img
/
RAILPSI3.ZIP
/
INSTALLC.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-04-03
|
1KB
|
53 lines
echo off
REM this program installs for 5 1/4" disks only
REM test for existing SAMURAI subdirectory
if EXIST c:\RAILS\game.exe goto ClearDir
if EXIST c:\RAILS\egraphic.exe goto ClearDir
if EXIST c:\RAILS\page1.pic goto ClearDir
goto NewDir
:ClearDir
REM this will clear the subdirectory C:\RAILS
cls
echo Please answer "Y" to following question,
echo it clears out the old RAILS files.
echo on
erase c:\RAILS\*.*
echo off
goto CopyFiles
:NewDir
REM this installs new RAILS subdirectory; errorlevel 0 means success
MD C:\RAILS
if errorlevel 0 goto CopyFiles
cls
echo Error creating C:\RAILS subdirectory, do not use INSTALL program.
echo You must install RAILROAD TYCOON manually. Sorry.
goto End
:CopyFiles
REM this copies files from floppies in to C:\RAILS
cls
echo Insert disk labelled "A" into your A: disk drive, then...
PAUSE
copy A:*.* C:\RAILS
cls
echo Insert disk labelled "B" into your A: disk drive, then...
PAUSE
copy A:*.* C:\RAILS
copy A:RAILSC.BAT C:\RAILS.BAT
if EXIST c:\rails\page1.pic goto :End
cls
echo Insert disk labelled "C" into your A: disk drive, then...
PAUSE
copy A:*.* C:\RAILS
cls
:End
echo INSTALL FINISHED