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

  1. echo off
  2. if "%1" == "" goto badstart
  3. if "%2" == "" goto badstart
  4. if "%3" == "" goto badstart
  5. if "%3" == "y" goto begin
  6. if "%3" == "n" goto begin
  7. goto badstart
  8. :begin
  9. echo Please place a formatted BLANK disk labeled EXAMPLES in drive %2
  10. pause
  11. md %2\ANSWERS
  12. md %2\EXAMPLES
  13. md %2\PIE
  14. unpack %1\ANSWERS.ARC %2\ANSWERS
  15. unpack %1\EXAMPLES.ARC %2\EXAMPLES
  16. unpack %1\PIE.ARC %2\PIE
  17. if "%3" == "n" goto cont
  18. if "%3" == "N" goto cont
  19. echo Please place a formatted BLANK disk labeled REFEXAMP in drive %2
  20. pause
  21. md %2\REFEXAMP
  22. unpack %1\REFEXAMP.ARC %2\REFEXAMP
  23. :cont
  24. echo Please place a formatted BLANK disk labeled PROGRAMS in drive %2
  25. pause
  26. unpack %1\PROGRAMS.ARC %2
  27. echo Please place a formatted BLANK disk labeled BOOT DISK in drive %2
  28. pause
  29. copy %1\readme.* %2
  30. :chkdsk2
  31. if exist %1PROLOG.EXE goto cpyfile2
  32. echo Please insert the Turbo Prolog disk labeled COMPILER into drive %1
  33. pause
  34. goto chkdsk2
  35. :cpyfile2
  36. copy %1\PROLOG.EXE %2
  37. copy %1\BGI.LIB %2
  38. copy %1\BGIOBJ.EXE %2
  39. :chkdsk3
  40. if exist %1PROLOG.ERR goto cpyfile3
  41. echo Please insert the Turbo Prolog disk labeled HELP/BGI into drive %1
  42. echo and a formatted BLANK disk labeled RUN DISK in drive %2
  43. pause
  44. goto chkdsk3
  45. :cpyfile3
  46. copy %1\*.* %2
  47. erase %2\INSTALL*.BAT
  48. :chkdsk4
  49. if exist %1PROLOG.LIB goto cpyfile4
  50. echo Please insert the Turbo Prolog disk labeled LIBRARY into drive %1
  51. echo and a formatted BLANK disk labeled LIBRARY in drive %2
  52. pause
  53. goto chkdsk4
  54. :cpyfile4
  55. copy %1\*.* %2
  56. erase %2\INSTALL*.BAT
  57. echo 
  58. echo Turbo Prolog 2.0 is now aready for use on your system.  Don't forget
  59. echo to put the ORIGINAL disks in a safe place.
  60. echo 
  61. goto quit
  62. :badstart
  63. echo To install Turbo Prolog on a two floppy system place the disk labeled
  64. echo INSTALLATION/README in drive A: and use the command
  65. echo 
  66. echo    INSTALLF A: B: y  (if you want to copy the Reference Examples)
  67. echo  
  68. echo    INSTALLF A: B: n  (if you don't want the Reference Examples)  
  69. echo   
  70. echo (Where A: is the SOURCE drive and B: is the DESTINATION drive.)  
  71. :quit