home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 236.img / HOYLE1PE.ZIP / INSTGAME.BAT < prev    next >
DOS Batch File  |  1990-06-19  |  834b  |  37 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: 700kb
  8. if errorlevel 1 goto NoSpace
  9.  
  10. rem    Create the drivers subdirectory and copy the drivers.
  11. godir %1:\sierra\hoyle2
  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:__insth.bat >nul
  19.  
  20. copy %2:hoyle2.bat %1:\sierra >nul
  21.  
  22. rem    Copy all the resources over.
  23. __insth %1 %2
  24.  
  25. :NoSpace
  26. echo "There is not enough space on %1 to install Hoyle Solitaire!"
  27. echo "Approximately 700K bytes of disk space is required."
  28. pause
  29. goto Exit
  30.  
  31. :CantCreate
  32. echo "Unable to create directory %1."
  33. pause
  34. goto Exit
  35.  
  36. :Exit
  37.