home *** CD-ROM | disk | FTP | other *** search
/ Home Edutainment Collecti… Childrens English Tutor / Aztech-HomeEdutainmentCollection-Vol3-ChildrensEnglishTutor.iso / papm / install.bat < prev    next >
DOS Batch File  |  1994-05-21  |  3KB  |  87 lines

  1. echo off
  2. cls
  3. if %1a == a: goto WHATDRIVE
  4. if %1b == b: goto WHATDRIVE
  5. if %1 == c: goto START
  6. if %1 == C: goto START
  7. if %1 == d: goto START
  8. if %1 == D: goto START
  9. if %1 == e: goto START
  10. if %1 == E: goto START
  11. if %1 == f: goto START
  12. if %1 == F: goto START 
  13. goto NOTDRIVE
  14. :START
  15. echo 
  16. echo   ╔════════════════════════════════════════════════════════════════════════╗
  17. echo   ║                                                                        ║
  18. echo   ║   Pencil and Paper Activity Maker Hard Disk Installation and Update.   ║
  19. echo   ║                                                                        ║
  20. echo   ║   *  This will create a directory called %1\PAPAMAKE on your hard      ║
  21. echo   ║      disk, and will install the PAPAM (Pencil and Paper Activity       ║
  22. echo   ║      Maker) files in that directory.                                   ║
  23. echo   ║                                                                        ║
  24. echo   ║   *  If PAPAM is already installed on your hard disk, this will        ║
  25. echo   ║      update the files in the %1\PAPAMAKE directory.                    ║
  26. echo   ║                                                                        ║
  27. echo   ║   *  To run the program, type PAPAM and press ENTER.                   ║
  28. echo   ║                                                                        ║
  29. echo   ║   *  If you don't want PAPAM installed/updated at this time, press     ║
  30. echo   ║      CTRL + BREAK.                                                     ║
  31. echo   ║                                                                        ║
  32. echo   ╚════════════════════════════════════════════════════════════════════════╝
  33. echo 
  34. pause
  35. cls
  36. if exist %1\PAPAMAKE\*.* goto EXISTS
  37. echo Making directory %1\PAPAMAKE . . .
  38. md %1\PAPAMAKE
  39. :CHECK
  40. if exist PAPAM.EXE goto CONTINUE
  41. echo 
  42. echo Place the disk containing Pencil and Paper Activity Maker files in the
  43. echo active drive.
  44. echo 
  45. pause
  46. goto CHECK
  47. :CONTINUE
  48. echo 
  49. echo Copying Pencil and Paper Activity Maker files . . .
  50. copy *.* %1\PAPAMAKE
  51. if not exist %1\PAPAMAKE\PAPAM.EXE goto INSTALLERROR
  52. if not exist %1\PAPAMAKE\BRUN45.EXE goto INSTALLERROR
  53. cd %1\PAPAMAKE
  54. echo 
  55. echo Pencil and Paper Activity Maker is installed/updated on your hard disk.  
  56. echo To run it, type PAPAM.
  57. %1
  58. echo 
  59. goto DONE
  60. :WHATDRIVE
  61. cls
  62. echo Installation Error:  To install Pencil and Paper Activity Maker on your
  63. echo hard disk, you must include the drive as part of the install command.
  64. echo for example, to install Pencil and Paper Activity Maker on drive C, type 
  65. echo INSTALL C: and press ENTER.
  66. goto ERRORQUIT
  67. :NOTDRIVE
  68. cls
  69. echo Installation Error: The hard drive letter can be a letter from C to F,
  70. echo For example, INSTALL C: will install Pencil and Paper Activity Maker
  71. echo on drive C.  You must include a colon after the drive letter.
  72. goto ERRORQUIT
  73. :INSTALLERROR
  74. cls
  75. echo Installation Error: Do you have enough space on your hard disk?
  76. echo Did you give the proper hard drive letter?
  77. goto ERRORQUIT
  78. :EXISTS
  79. cls
  80. echo Updating directory %1\PAPAMAKE . . .
  81. goto CHECK
  82. :ERRORQUIT
  83. echo 
  84. echo Pencil and Paper Activity Maker was as not installed correctly.
  85. echo 
  86. :DONE
  87.