home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / Othergam / GLDRSH-1.ZIP / INSTALLH.BAT < prev    next >
DOS Batch File  |  1988-10-14  |  1KB  |  49 lines

  1. echo off
  2. echo off 
  3. echo   
  4. echo   
  5. rem    ----    Make sure that we've got a parameter and that we're on the 
  6. rem    ----    proper drive. 
  7. if "%1" == "" goto Usage
  8. if not exist installh.bat goto Usage 
  9. rem    ----    Wait for a keystroke before starting. 
  10. echo off 
  11. echo Hard disk installation for 
  12. echo Gold Rush
  13. pause 
  14.  
  15. rem    ----    Create or change to the appropriate directory on the hard disk. 
  16. makepath %1\sierra 
  17. if errorlevel 1 goto CantMake 
  18. makepath %1gr
  19. if errorlevel 1 goto CantMake 
  20. rem    ----    Copy the installation file to the hard disk and execute it. 
  21. copy _install.bat %1 
  22. %1_install %1 
  23. goto Exit 
  24.  
  25. rem    ----    Tell user that we couldn't create the proper directory 
  26. rem    ----    and bail out. 
  27. :CantMake 
  28. echo off 
  29. echo   
  30. echo   
  31. echo Unable to create the directory 
  32. echo     %1\sierra\gr
  33. echo Installation cancelled. 
  34. goto Exit 
  35.  
  36. rem    ----    No parameter or not on the proper drive -- tell user how 
  37. rem    ----    to use installation program. 
  38. :Usage 
  39. echo off 
  40. echo To install Gold Rush on 
  41. echo hard disk C:, make the drive 
  42. echo containing the Gold Rush
  43. echo disk your current drive, then type 
  44. echo        installh  C: 
  45. echo    If your hard disk has a drive letter 
  46. echo other than C:, use its letter instead. 
  47.  
  48. :Exit 
  49.