home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 320.img / S101-1.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1990-08-28  |  3KB  |  100 lines

  1. @echo off
  2. echo off
  3. cls
  4. if NOT exist install.bat goto oops
  5. if NOT exist s101.exe goto oops
  6. if NOT exist soundfx1.exe goto oops
  7. if "%1"=="" goto msg1
  8. if "%2"=="" goto msg2
  9. goto special
  10. :oops
  11. echo Please run INSTALL.BAT from SYSTEM DISK 1 in floppy drive A: or B:
  12. goto exit
  13. :msg1
  14. echo ╔════════════════════════════════════════════════════════════╗
  15. echo ║                                                            ║
  16. echo ║        Spellcasting 101: Sorcerers Get All the Girls       ║
  17. echo ║            Press any key to install on C:\S101             ║
  18. goto msg3
  19. :msg2
  20. echo ╔════════════════════════════════════════════════════════════╗
  21. echo ║                                                            ║
  22. echo ║ Please specify both the drive and the directory, separated ║
  23. echo ║ by a space.  The drive letter should include the colon,    ║
  24. echo ║ and the directory name should start at the root '\'.       ║
  25. :msg3
  26. echo ║                                                            ║
  27. echo ║ If you want to use a drive or directory other than C:\S101 ║
  28. echo ║ press CTRL BREAK and then 'y' to abort, then type:         ║
  29. echo ║                                                            ║
  30. echo ║   INSTALL [drive:] space [path]                            ║
  31. echo ║                                                            ║
  32. echo ║ For example, to install on D:\GAMES\S101 type:             ║
  33. echo ║                                                            ║
  34. echo ║   INSTALL D: \GAMES\S101                                   ║
  35. echo ║                                                            ║
  36. echo ║ be sure that D:\GAMES already exists before installation.  ║
  37. echo ║                                                            ║
  38. echo ╚════════════════════════════════════════════════════════════╝
  39. pause
  40. cls
  41. echo Installing game to C:\S101.  Press CTRL BREAK to abort...
  42. cd c:\
  43. if exist C:\S101 goto error1
  44. if exist C:\S101\*.* goto go1
  45. echo Creating directory C:\S101
  46. md C:\S101
  47. copy INSTALL.BAT C:\S101 > nul
  48. if exist C:\S101\INSTALL.BAT goto go1
  49. :error1
  50. echo Error: unable to create C:\S101. Does a file by that name already exist?
  51. goto exit
  52. :go1
  53. echo Ready to begin file transfer to C:\S101.
  54. pause
  55. cls
  56. echo Copying SYSTEM DISK 1 to C:\S101
  57. copy *.* C:\S101
  58. erase c:\s101\install.bat
  59. c:\s101\install5 C: \S101 Arf
  60.  
  61. :special
  62. if %1 == c: goto driveok
  63. if %1 == C: goto driveok
  64. if %1 == d: goto driveok
  65. if %1 == D: goto driveok
  66. if %1 == e: goto driveok
  67. if %1 == E: goto driveok
  68. if %1 == f: goto driveok
  69. if %1 == F: goto driveok
  70. if %1 == g: goto driveok
  71. if %1 == G: goto driveok
  72. if %1 == h: goto driveok
  73. if %1 == H: goto driveok
  74. echo Invalid drive specification... the drive must be a letter from 'C' to 'H'
  75. echo followed by a colon, separated by a space from the full directory path.
  76. goto exit
  77. :driveok
  78. cls
  79. echo Installing game to %1%2.  Press CTRL BREAK to abort...
  80. cd %1\
  81. if exist %1%2 goto error2
  82. if exist %1%2\*.* goto go2
  83. echo Creating directory %1%2
  84. md %1%2
  85. copy INSTALL.BAT %1%2 > nul
  86. if exist %1%2\INSTALL.BAT goto go2
  87. :error2
  88. echo Error: unable to create %1%2. Does a file by that name already exist?
  89. goto exit
  90. :go2
  91. echo Ready to begin file transfer to %1%2.
  92. pause
  93. cls
  94. echo Copying SYSTEM DISK 1 to %1%2
  95. copy *.* %1%2
  96. erase %1%2\install.bat
  97. %1%2\install5 %1 %2 Arf
  98.  
  99. :exit
  100.