home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 63.img / HEROS1-1.ZIP / INSTGAME.BAT < prev    next >
DOS Batch File  |  1989-09-14  |  837b  |  36 lines

  1. echo off
  2. rem     Parameters are
  3. rem         %1:    drive on which to install the program
  4. rem         %2:    drive from which installation is taking place
  5.  
  6. rem    Check to see that there is enough space for the installation.
  7. space %1: 2600kb
  8. if errorlevel 1 goto NoSpace
  9.  
  10. rem    Create the drivers subdirectory and copy the drivers.
  11. godir %1:\sierra\hero
  12. if errorlevel 1 goto CantCreate
  13.  
  14. rem    Copy over the necessary files.
  15. echo Copying drivers...
  16. copy %2:*.drv >nul
  17. copy %2:exists.com >nul
  18. copy %2:__hdhero.bat ..\hero.bat >nul
  19. copy %2:__insth.bat >nul
  20.  
  21. rem    Copy all the resources over.
  22. __insth %1 %2
  23.  
  24. :NoSpace
  25. echo "There is not enough space on %1 to install Hero's Quest I!"
  26. echo "Approximately 2.6 megabytes of disk space are required."
  27. pause
  28. goto Exit
  29.  
  30. :CantCreate
  31. echo "Unable to create directory %1."
  32. pause
  33. goto Exit
  34.  
  35. :Exit
  36.