home *** CD-ROM | disk | FTP | other *** search
/ 5 Star Games: Windows Edition / 5StarsGames-Windows31Edition.iso / elftree / install.bat < prev    next >
DOS Batch File  |  1993-02-06  |  2KB  |  68 lines

  1. echo off
  2. REM (C) Copyright 1988-1993 by Alan J. Avery, Springfield, Illinois
  3. REM ALL RIGHTS RESERVED
  4. REM
  5. REM This installs ELFTREE in the directory/disk specified.
  6. goto ELFINST
  7. :HELP
  8. cls
  9. echo Correct Usage:
  10. echo     INSTALL (drive) (disk) (directory), where:
  11. echo  (drive) is the drive the floppy is in (A, B)
  12. echo     (NOTE: do not use a colon!)
  13. echo  (disk) is the disk to install to (C, D, E, ...)
  14. echo  (directory) is the directory to install to  (TREE, ELFTREE, etc.)
  15. echo     (NOTE: do not use a beginning backslash!)
  16. echo  Here's an example of how to correctly specify these parameters:
  17. echo     INSTALL  A C TREE
  18. goto exit
  19. :ELFINST
  20. if .%1==. goto HELP
  21. if .%1==.A: goto HELP
  22. if .%1==.a: goto HELP
  23. if .%1==.b: goto HELP
  24. if .%1==.B: goto HELP
  25. if .%2==. goto HELP
  26. REM Switch to disk to copy to.
  27. %2:
  28. if errorlevel 1 goto HELP
  29. REM Switch to the directory to copy this to.
  30. cd \
  31. if .%3==. goto skipmd
  32. if NOT exist %3\NUL md %3
  33. :skipmd
  34. cd %3
  35. REM Copy files needed for program.
  36. cls
  37. echo    Copying program files...
  38. copy %1:\ET.EXE >NUL
  39. echo echo off>ETT.BAT
  40. echo rem  DO NOT DELETE THIS FILE!!!>>ETT.BAT
  41. echo %2:\%3\ET.EXE>>ETT.BAT
  42. copy %1:\ELFTREE.CHL >NUL
  43. copy %1:\ASKET.EXE >NUL
  44. :COPYHELP
  45. echo     Copying auxiliary files...
  46. copy %1:\! >NUL
  47. copy %1:\README.DOC >NUL
  48. copy %1:\ORDER.DOC >NUL
  49. copy %1:\AUTOEXEC.DOC >NUL
  50. if exist MENU.ETU copy %1:\SAMPLE.ETU >NUL
  51. if not exist MENU.ETU copy %1:\SAMPLE.ETU MENU.ETU >NUL
  52. copy %1:\SNOOZE.ELF >NUL
  53. copy %1:\SITELICE.DOC >NUL
  54. copy %1:\VENDOR.DOC >NUL
  55. copy %1:\ELFTREE.HLP >NUL
  56. copy %1:\WHATSNEW.ES >NUL
  57. copy %1:\FEATURES.ET >NUL
  58. copy %1:\ELFTREE.NTE >NUL
  59. copy %1:\DESCRIPT.ION >NUL
  60. copy %1:\TITLES.PF  >NUL
  61. cls
  62. echo        ELFTREE is successfully installed.
  63. echo  
  64. echo        To start it, type: ET   and tap [Enter]
  65. echo  
  66. echo        Please read the files README.DOC and AUTOEXEC.DOC now.
  67. :exit
  68.