home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 61.img / FF1FRM-1.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1989-08-22  |  3KB  |  93 lines

  1. echo off
  2. cls
  3. if %1a == a goto Drv
  4. if %1 == c: goto begin
  5. if %1 == C: goto begin
  6. if %1 == d: goto begin
  7. if %1 == D: goto begin
  8. if %1 == e: goto begin
  9. if %1 == E: goto begin
  10. if %1 == f: goto begin
  11. if %1 == F: goto begin
  12. if %1 == g: goto begin
  13. if %1 == G: goto begin
  14. goto noDrv
  15. :begin
  16. if not exist f.exe goto NotOrg
  17. echo ╔═══════════════════════════════════════════════════════════════════════╗
  18. echo ║                                                                       ║
  19. echo ║               FERRARI FORMULA ONE Hard Disk Installation              ║
  20. echo ║                                                                       ║
  21. echo ║      This will create a directory called %1\FERRARI on your hard      ║
  22. echo ║      disk, and will install FERRARI FORMULA ONE in that directory.    ║
  23. echo ║                                                                       ║
  24. echo ║      If you don't want to install FERRARI FORMULA ONE now, press      ║
  25. echo ║      Ctrl-C. When the message asks if you want to terminate the       ║
  26. echo ║      batch job type Y.                                                ║
  27. echo ║                                                                       ║
  28. echo ╚═══════════════════════════════════════════════════════════════════════╝
  29. pause
  30. echo 
  31. echo Creating directory %1\FERRARI...
  32. if exist %1\FERRARI\*.* goto dirct
  33. cd\
  34. md %1\FERRARI
  35. echo Copying the files from FERRARI FORMULA ONE "MAIN DISK" to %1\FERRARI.
  36. copy \*.* %1\FERRARI
  37. if not exist %1\FERRARI\F.EXE goto instl
  38. :Disk2
  39. cls
  40. echo Copying the files from FERRARI FORMULA ONE "RACE DISK to %1\FERRARI.
  41. echo 
  42. echo Please replace the FERRARI FORMULA ONE "MAIN DISK" WITH THE "RACE DISK".
  43. echo 
  44. pause
  45. if not exist \OCARS.FF1 goto Disk2
  46. copy \*.* %1\FERRARI
  47. %1
  48. cd \FERRARI
  49. echo 
  50. echo FERRARI FORMULA ONE is now installed on your hard disk.  
  51. echo To run FERRARI FORMULA ONE type "FF1".
  52. goto done
  53. :NotOrg
  54. echo 
  55. echo Installation Error:  To install FERRARI FORMULA ONE on your hard disk, you
  56. echo must start this install with the "MAIN DISK" in drive A or B.  For example,
  57. echo your if the FERRARI FORMULA ONE "MAIN DISK" is in drive A and you want to 
  58. echo install to drive C,
  59. echo Type A: and press Enter.  
  60. echo Type "INSTALL C:" and press Enter.
  61. goto error
  62. :Drv
  63. echo 
  64. echo Installation Error:  To install FERRARI FORMULA ONE on your hard disk, you
  65. echo must specify the drive to install FERRARI FORMULA ONE onto.  For example,
  66. echo to install on drive C, 
  67. echo Type "INSTALL C:" and press Enter.
  68. goto error
  69. :noDrv
  70. echo 
  71. echo Installation Error: The hard drive letter must be a letter from C to F,
  72. echo and must be followed by a colon.  For example, "INSTALL C:" will install
  73. echo FERRARI FORMULA ONE on drive C.
  74. goto error
  75. :dirct
  76. echo 
  77. echo Installation Error: FERRARI FORMULA ONE has been installed on drive %1. 
  78. echo To reinstall, delete all files in the FERRARI subdirectory, then try
  79. echo installing again.
  80. goto error
  81. :instl
  82. echo 
  83. echo Installation Error: An error occured during installation. This could be 
  84. echo caused by a read/write error or perhaps there isn't enough space left on 
  85. echo your hard disk. FERRARI FORMULA ONE installation requires at least 680k 
  86. echo free disk space. Before attempting to reinstall you must delete any files
  87. echo that now exist in the FERRARI subdirectory of your hard disk %1.
  88. :error
  89. echo 
  90. echo FERRARI FORMULA ONE has not been installed successfully. 
  91. echo 
  92. :done
  93.