home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l210 / 1.ddi / INSTALLH.BAT < prev    next >
Encoding:
DOS Batch File  |  1988-06-21  |  1.6 KB  |  66 lines

  1. echo off
  2. if "%1" == "" goto badstart
  3. if "%2" == "" goto badstart
  4. if "%3" == "CHAIN" goto begin
  5. goto badstart
  6. :begin
  7. echo Copying and unpacking files...
  8. unpack %1\ANSWERS.ARC %2\ANSWERS
  9. unpack %1\EXAMPLES.ARC %2\EXAMPLES
  10. unpack %1\PIE.ARC %2\PIE
  11. unpack %1\PROGRAMS.ARC %2\PROGRAMS
  12. unpack %1\REFEXAMP.ARC %2\REFEXAMP
  13. copy %1\readme.* %2
  14. :chkdsk2
  15. if exist %1PROLOG.EXE goto cpyfile2
  16. echo Please insert the Turbo Prolog disk labeled COMPILER into drive %1
  17. pause
  18. goto chkdsk2
  19. :cpyfile2
  20. copy %1\PROLOG.EXE %2
  21. copy %1\BGI.LIB %2\BGI
  22. copy %1\BGIOBJ.EXE %2\BGI
  23. :chkdsk3
  24. if exist %1PROLOG.ERR goto cpyfile3
  25. echo Please insert the Turbo Prolog disk labeled HELP/BGI into drive %1
  26. pause
  27. goto chkdsk3
  28. :cpyfile3
  29. copy %1\PROLOG.* %2
  30. copy %1\*.BGI %2\BGI
  31. copy %1\*.CHR %2\BGI
  32. copy %1\OLD.SYS %2
  33. :chkdsk4
  34. if exist %1PROLOG.LIB goto cpyfile4
  35. echo Please insert the Turbo Prolog disk labeled LIBRARY into drive %1
  36. pause
  37. goto chkdsk4
  38. :cpyfile4
  39. copy %1\*.* %2
  40. echo off
  41. erase %2\UNPACK.COM
  42. erase %2\INSTALLF.BAT
  43. echo 
  44. echo Turbo Prolog 2.0 is now installed on your hard disk. Before
  45. echo running Turbo Prolog you should add 
  46. echo 
  47. echo   %2
  48. echo 
  49. echo to your DOS PATH so you can run the compiler from any directory.
  50. echo For example, in your AUTOEXEC.BAT file you would add the line:
  51. echo 
  52. echo   PATH=%2
  53. echo 
  54. echo You should also add the lines
  55. echo 
  56. echo   FILES=20
  57. echo   BUFFERS=40
  58. echo 
  59. echo to the CONFIG.SYS file located in the root directory of your hard
  60. echo disk.
  61. echo 
  62. goto quit
  63. :badstart
  64. echo Please use INSTALL to begin installation.
  65. :quit
  66.