home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 173.img / RAILPSI3.ZIP / INSTALLC.BAT < prev    next >
DOS Batch File  |  1990-04-03  |  1KB  |  53 lines

  1. echo off
  2. REM this program installs for 5 1/4" disks only
  3. REM test for existing SAMURAI subdirectory
  4. if EXIST c:\RAILS\game.exe goto ClearDir
  5. if EXIST c:\RAILS\egraphic.exe goto ClearDir
  6. if EXIST c:\RAILS\page1.pic goto ClearDir
  7. goto NewDir
  8.  
  9. :ClearDir
  10. REM  this will clear the subdirectory C:\RAILS
  11. cls
  12. echo Please answer "Y" to following question,
  13. echo it clears out the old RAILS files.
  14. echo on
  15. erase c:\RAILS\*.*
  16. echo off
  17. goto CopyFiles
  18.  
  19. :NewDir
  20. REM  this installs new RAILS subdirectory; errorlevel 0 means success
  21. MD C:\RAILS
  22. if errorlevel 0 goto CopyFiles
  23. cls
  24. echo Error creating C:\RAILS subdirectory, do not use INSTALL program.
  25. echo You must install RAILROAD TYCOON manually. Sorry. 
  26. goto End
  27.  
  28. :CopyFiles
  29. REM  this copies files from floppies in to C:\RAILS
  30.  
  31. cls
  32. echo Insert disk labelled "A" into your A: disk drive, then...
  33. PAUSE
  34. copy A:*.* C:\RAILS
  35.  
  36. cls
  37. echo Insert disk labelled "B" into your A: disk drive, then...
  38. PAUSE
  39. copy A:*.* C:\RAILS
  40. copy A:RAILSC.BAT C:\RAILS.BAT
  41.  
  42. if EXIST c:\rails\page1.pic goto :End
  43.  
  44. cls
  45. echo Insert disk labelled "C" into your A: disk drive, then...
  46. PAUSE
  47. copy A:*.* C:\RAILS
  48.  
  49. cls
  50. :End
  51. echo INSTALL FINISHED
  52.  
  53.