home *** CD-ROM | disk | FTP | other *** search
- echo off
- REM this program installs for 5 1/4" disks only
- REM test for existing RAILS subdirectory
- if EXIST d:\RAILS\game.exe goto ClearDir
- if EXIST d:\RAILS\egraphic.exe goto ClearDir
- if EXIST d:\RAILS\page1.pic goto ClearDir
- goto NewDir
-
- :ClearDir
- REM this will clear the subdirectory D:\RAILS
- cls
- echo Please answer "Y" to following question,
- echo it clears out the old RAILS files.
- echo on
- erase d:\RAILS\*.*
- echo off
- goto CopyFiles
-
- :NewDir
- REM this installs new RAILS subdirectory; errorlevel 0 means success
- MD D:\RAILS
- if errorlevel 0 goto CopyFiles
- cls
- echo Error creating D:\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 D:\RAILS
-
- cls
- echo Insert disk labelled "A" into your A: disk drive, then...
- PAUSE
- copy A:*.* D:\RAILS
-
- cls
- echo Insert disk labelled "B" into your A: disk drive, then...
- PAUSE
- copy A:*.* D:\RAILS
- copy A:RAILSD.BAT D:\RAILS.BAT
-
- if EXIST d:\rails\page1.pic goto :End
-
- cls
- echo Insert disk labelled "C" into your A: disk drive, then...
- PAUSE
- copy A:*.* D:\RAILS
-
- cls
- goto End
-
- :End
- echo INSTALL FINISHED
-