home *** CD-ROM | disk | FTP | other *** search
/ DOOM Heaven 2 / DoomHeaven2ForDoom2.iso / elftree / install.bat < prev    next >
DOS Batch File  |  1994-02-15  |  2KB  |  65 lines

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