home *** CD-ROM | disk | FTP | other *** search
/ CD Direkt 1995 #6 / CDD_6_95.ISO / cdd / dosanw / cdp / install.bat < prev    next >
DOS Batch File  |  1995-01-03  |  4KB  |  179 lines

  1. @echo off
  2.  
  3. :START
  4. rem Start INSTALL.BAT: INSTALL Quelle Ziel  (A: bis Z: ist möglich)
  5. rem Beispiel: A:INSTALL A: C:
  6.  
  7. rem Quell- und Ziellaufwerk angegeben? - wenn nicht, dann HILFE1
  8. if "%1"=="" goto HELP1
  9. if "%2"=="" goto HELP1
  10.  
  11. echo.
  12. echo.
  13. echo       INSTALLATION: SoftNews MultiMedia CD-Player (CDP) 
  14. echo                     Shareware-Version 1.23S
  15. echo.
  16.  
  17. rem Überprüfen ob Laufwerksbuchstabe richtig angegeben ist.. A bis Z.
  18. if %1==A: goto ZIEL
  19. if %1==B: goto ZIEL
  20. if %1==C: goto ZIEL
  21. if %1==D: goto ZIEL
  22. if %1==E: goto ZIEL
  23. if %1==F: goto ZIEL
  24. if %1==G: goto ZIEL
  25. if %1==H: goto ZIEL
  26. if %1==I: goto ZIEL
  27. if %1==J: goto ZIEL
  28. if %1==K: goto ZIEL
  29. if %1==L: goto ZIEL
  30. if %1==M: goto ZIEL
  31. if %1==N: goto ZIEL
  32. if %1==O: goto ZIEL
  33. if %1==P: goto ZIEL
  34. if %1==Q: goto ZIEL
  35. if %1==R: goto ZIEL
  36. if %1==S: goto ZIEL
  37. if %1==T: goto ZIEL
  38. if %1==U: goto ZIEL
  39. if %1==V: goto ZIEL
  40. if %1==W: goto ZIEL
  41. if %1==X: goto ZIEL
  42. if %1==Y: goto ZIEL
  43. if %1==Z: goto ZIEL
  44.  
  45. if %1==a: goto ZIEL
  46. if %1==b: goto ZIEL
  47. if %1==c: goto ZIEL
  48. if %1==d: goto ZIEL
  49. if %1==e: goto ZIEL
  50. if %1==f: goto ZIEL
  51. if %1==g: goto ZIEL
  52. if %1==h: goto ZIEL
  53. if %1==i: goto ZIEL
  54. if %1==j: goto ZIEL
  55. if %1==k: goto ZIEL
  56. if %1==l: goto ZIEL
  57. if %1==m: goto ZIEL
  58. if %1==n: goto ZIEL
  59. if %1==o: goto ZIEL
  60. if %1==p: goto ZIEL
  61. if %1==q: goto ZIEL
  62. if %1==r: goto ZIEL
  63. if %1==s: goto ZIEL
  64. if %1==t: goto ZIEL
  65. if %1==u: goto ZIEL
  66. if %1==v: goto ZIEL
  67. if %1==w: goto ZIEL
  68. if %1==x: goto ZIEL
  69. if %1==y: goto ZIEL
  70. if %1==z: goto ZIEL
  71.  
  72.  
  73.  
  74. goto HELP1
  75. :ZIEL
  76. if %2==A: goto DRIVEOK
  77. if %2==B: goto DRIVEOK
  78. if %2==C: goto DRIVEOK
  79. if %2==D: goto DRIVEOK
  80. if %2==E: goto DRIVEOK
  81. if %2==F: goto DRIVEOK
  82. if %2==G: goto DRIVEOK
  83. if %2==H: goto DRIVEOK
  84. if %2==I: goto DRIVEOK
  85. if %2==J: goto DRIVEOK
  86. if %2==K: goto DRIVEOK
  87. if %2==L: goto DRIVEOK
  88. if %2==M: goto DRIVEOK
  89. if %2==N: goto DRIVEOK
  90. if %2==O: goto DRIVEOK
  91. if %2==P: goto DRIVEOK
  92. if %2==Q: goto DRIVEOK
  93. if %2==R: goto DRIVEOK
  94. if %2==S: goto DRIVEOK
  95. if %2==T: goto DRIVEOK
  96. if %2==U: goto DRIVEOK
  97. if %2==V: goto DRIVEOK
  98. if %2==W: goto DRIVEOK
  99. if %2==X: goto DRIVEOK
  100. if %2==Y: goto DRIVEOK
  101. if %2==Z: goto DRIVEOK
  102.  
  103. if %2==a: goto DRIVEOK
  104. if %2==b: goto DRIVEOK
  105. if %2==c: goto DRIVEOK
  106. if %2==d: goto DRIVEOK
  107. if %2==e: goto DRIVEOK
  108. if %2==f: goto DRIVEOK
  109. if %2==g: goto DRIVEOK
  110. if %2==h: goto DRIVEOK
  111. if %2==i: goto DRIVEOK
  112. if %2==j: goto DRIVEOK
  113. if %2==k: goto DRIVEOK
  114. if %2==l: goto DRIVEOK
  115. if %2==m: goto DRIVEOK
  116. if %2==n: goto DRIVEOK
  117. if %2==o: goto DRIVEOK
  118. if %2==p: goto DRIVEOK
  119. if %2==q: goto DRIVEOK
  120. if %2==r: goto DRIVEOK
  121. if %2==s: goto DRIVEOK
  122. if %2==t: goto DRIVEOK
  123. if %2==u: goto DRIVEOK
  124. if %2==v: goto DRIVEOK
  125. if %2==w: goto DRIVEOK
  126. if %2==x: goto DRIVEOK
  127. if %2==y: goto DRIVEOK
  128. if %2==z: goto DRIVEOK
  129. goto HELP1
  130.  
  131.  
  132. :DRIVEOK
  133. rem    Laufwerksangaben ok, trotzdem wissen wir nicht, ob das angegebene
  134. rem    Ziel-Laufwerk wirklich existiert - also prüfen (WHAT YE).
  135. %2:
  136.  
  137. :DRIVEOK2
  138. cd \
  139. rem echo %1what f %1WHAT.EXE
  140. rem echo if %what%==0 goto ABBRUCH
  141.  
  142. :CDP-DEMO
  143. rem    CDP-Verzeichnis überprüfen und ggf. machen
  144. %1what f CDP123S
  145. if %what%==255 cd cdp123s
  146. if %WHAT%==255 goto INST_CDP
  147. if %what%==0 md cdp123S
  148. goto CDP-DEMO
  149.  
  150. :INST_CDP
  151. rem WHAT.EXE und INST_CDP.BAT ins \CDP123S - Verzeichnis kopieren
  152. copy %1what.EXE >NUL
  153. copy %1INST_CDP.BAT >NUL
  154. INST_CDP.BAT %1 %2
  155.  
  156. :HELP1
  157. echo.
  158. echo.
  159. echo.
  160. echo            CDP - Installationshilfe                            01/95
  161. echo            ------------------------------------                -----
  162. echo.
  163. echo    Start INSTALL.BAT: INSTALL Quelle(Diskettenlaufwerk) Ziel(Festplatte)
  164. echo.
  165. echo    Beispiel: A:INSTALL A: C:     oder      A:INSTALL A: D:
  166. echo.
  167. echo    Alle erforderlichen Daten werden in ein Verzeichnis '\CDP123S' kopiert
  168. echo.
  169. echo    Bitte starten Sie INSTALL erneut mit den Laufwerksangaben.
  170. echo.
  171. goto ENDE
  172.  
  173.  
  174.  
  175. :ABBRUCH
  176. echo  ***** Installation abgebrochen.
  177.  
  178. :ENDE
  179.