home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1995 December / SOFM_Dec1995.bin / pc / dos / edu / mscope / install.bat < prev    next >
DOS Batch File  |  1995-10-31  |  7KB  |  132 lines

  1. echo off
  2. CLS
  3. ECHO ██████████████████████████████████████████████████████████████████████████
  4. ECHO █  Microscope for the PC - Shareware Installation Program                █
  5. ECHO ██████████████████████████████████████████████████████████████████████████
  6. REM   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  7. REM   + Check to see if command line parameter given...                 +
  8. REM   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  9. IF ARG==ARG%1 GOTO syntaxerr
  10. IF ARG==ARG%2 GOTO syntaxerr
  11. REM   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  12. REM   + If True then parameter missing, so goto syntax err message      +
  13. REM   + Otherwise see if it can be used.                                +
  14. REM   + Is user asking for help...?                                     +
  15. REM   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  16. IF %1==? GOTO instruct
  17. REM   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  18. REM   + Has user quoted a floppy drive in error..?                      +
  19. REM   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  20. IF %1==A GOTO floppy
  21. IF %1==B GOTO floppy
  22. IF %1==a GOTO floppy
  23. IF %1==b GOTO floppy
  24. REM   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  25. REM   + No, so test to see if DRIVE is real...                          +
  26. REM   + but check to see if test file exists on distribution disc first +
  27. REM   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  28. if NOT EXIST MICTEST1.TMP goto filemissing
  29. copy mictest1.tmp %1:\*.* > nul
  30. if exist %1:\mictest1.tmp goto driveokay
  31. REM   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  32. REM   + if not okay file did not copy to named drive do tell user!      +
  33. REM   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  34. :nodrive
  35. ECHO Sorry: Drive %1 can not be copied to! Does it exist?
  36. goto end
  37. :floppy
  38. echo Sorry: Microscope cannot be installed to a floppy drive! 
  39. goto end
  40. REM   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  41. REM   +                    INSTALL HERE                                 +
  42. REM   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  43. :driveokay
  44. REM   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  45. REM   + get rid of test file from hard disc                             +
  46. REM   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  47. erase %1:\MICTEST1.TMP
  48. ECHO --------------------------------------------------------------------
  49. ECHO         ░▒░     MICROSCOPE V2.0 (C) MOLCOL SOFTWARE 1994
  50. ECHO          ░
  51. ECHO          ░  ▒   VOICE / FAX - TEL: 0181 685 0528 24 HRS (UK).
  52. ECHO          ▒▒▒▒   Internet Email   : mol@demon.co.uk
  53. ECHO          ░  ▒
  54. ECHO         ▓▓▓ ▒   "I have tried many things: painting, writing, video
  55. ECHO         ▓ ▓ ▒    and still photography, computing, astronomy, DIY, 
  56. ECHO         ═══─▒    to name a few. I wished I had discovered Microscopy
  57. ECHO             ▒    first. It is the closest I will ever come to seeing 
  58. ECHO         ▒▒▒▒▒    the real nature of things and the miracle of life! "
  59. ECHO                                               M.Smith (author).
  60. echo --------------------------------------------------------------------
  61. ECHO Attempting Installation of Microscope for the PC to %1:\MSCOPE
  62. ECHO Creating new directory called MSCOPE on hard disc...
  63. md %1:\mscope
  64. REM   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  65. REM   + Check does user own Ver 1.0 - display message and leave it alone+
  66. REM   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  67. IF NOT EXIST %1:\MSCOPE\MSCOPE.EXE GOTO nover1found
  68. ECHO Microscope Ver 1.0 found on disc.
  69. ECHO Retaining Ver 1.0 and adding Ver 2.0...
  70. :nover1found
  71. ECHO MICROSCOPE will be installed to %1:\MSCOPE directory.
  72. ECHO Press any key to proceed or CTRL C to abort...
  73. pause
  74. cls
  75.  
  76. ECHO         ░▒░     MICROSCOPE V2.0 (C) MOLCOL SOFTWARE 1994
  77. ECHO          ░
  78. ECHO          ░  ▒   VOICE / FAX - TEL: 0181 685 0528 24 HRS (UK).
  79. ECHO          ▒▒▒▒   Internet Email   : mol@demon.co.uk
  80. ECHO          ░  ▒
  81. ECHO         ▓▓▓ ▒   If you've never looked down a real microscope or only
  82. ECHO         ▓ ▓ ▒   saw one briefly at school, you may be missing out on
  83. ECHO         ═══─▒   an incredible experience. Ring BRUNEL MICROSCOPES (UK)
  84. ECHO             ▒   on TEL: 0249 701601 (Corsham, Wilts, UK). Tell them   
  85. ECHO         ▒▒▒▒▒   you want to be a first-timer now you've seen MICROSCOPE
  86. ECHO                 and ask how you can get started cheaply. They'll be 
  87. ECHO                 friendly and will really help you out.                                               
  88. ECHO         ═══════════════════════════════════════════════════════════════                                             
  89. ECHO                                                                
  90. echo copying Microscope Ver 2.0 files to %1:\MSCOPE
  91. copy *.* %1:\MSCOPE\*.*
  92. %1:
  93. cd %1:\mscope
  94. REM   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  95. REM   + Check to see if we have arrived in the correct directory..?     +
  96. REM   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  97. if not exist MSCOPE2A.EXE goto error1
  98. INST2 %1 %2
  99. goto error1
  100. :filemissing
  101. echo The file called MICTEST1.TMP is missing from distribution disc!
  102. echo Installation cannot proceed!
  103. goto end
  104. :error1
  105. echo Install failed : cannot switch to %1:\mscope
  106. goto end
  107. REM   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  108. REM   + user just typed INSTALL (expected) so explain how to install    +
  109. REM   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  110. :syntaxerr
  111. ECHO █                                                                        █
  112. ECHO █          Error: No drive letters given in command line!                █
  113. ECHO █                                                                        █
  114. ECHO ██████████████████████████████████████████████████████████████████████████
  115. :instruct
  116. ECHO █          Please Install by entering: INSTALL {1} {2}                   █
  117. ECHO █                                                                        █
  118. ECHO █    Where {1} equals the Hard Drive Designation of the DISC             █
  119. ECHO █    you wish to Install to and {2} equals the floppy drive              █
  120. ECHO █    used to install FROM. Remember to enter a SPACE between             █
  121. ECHO █    {1} and {2}. Do not use colons (:) in the command line!             █
  122. ECHO █                                                                        █
  123. echo █    Examples:-                                                          █
  124. ECHO █                                                                        █
  125. ECHO █    INSTALL C A      (Install TO drive C FROM drive A)                  █
  126. ECHO █    INSTALL D A      (Install TO drive D FROM drive A)                  █
  127. ECHO █    INSTALL C B      (Install TO drive C FROM drive B)                  █
  128. ECHO █                                                                        █
  129. ECHO ██████████████████████████████████████████████████████████████████████████
  130. :end
  131. pause
  132.