home *** CD-ROM | disk | FTP | other *** search
/ The Best of the Best / _.img / 02043 / kfz / install.bat < prev    next >
DOS Batch File  |  1992-02-01  |  5KB  |  127 lines

  1. @echo off
  2. REM ┌─────────────────────────────────────────────────────────────────────────┐
  3. REM │                    (C) Copyright Erich Schuster 1992                    │
  4. REM │                                                                         │
  5. REM │               Batch zum Installieren des Programm-Paketes               │
  6. REM └─────────────────────────────────────────────────────────────────────────┘
  7. cls
  8. if not exist install.bat goto noprog
  9. if '%1' == '' goto noparm
  10. if '%2' == '' goto noparm
  11. if not exist drive.exe goto errdisk
  12. if not exist list.exe goto errdisk
  13. if not exist ok.txt goto errdisk
  14. drive %1 >NUL
  15. if errorlevel 255 goto error
  16. if errorlevel 1 goto errlw
  17.  
  18. :DRIVEOK
  19. echo:
  20. echo Das Unterverzeichnis %1:\%2 wird angelegt...
  21. echo:
  22. if not exist bestell*.txt goto errdisk
  23. xcopy bestell*.txt %1:\%2\ >nul
  24. if errorlevel 1 goto error
  25.  
  26. :INSTALL
  27. echo:
  28. echo Das Programm-Paket wird installiert...
  29. echo:
  30. if not exist ix.bat goto copy
  31. call ix %1 %2
  32. goto fertig
  33.  
  34. :COPY
  35. xcopy *.* %1:\%2\ /V
  36. cls
  37. echo:
  38. echo Noch einen kleinen Moment bitte...
  39. echo:
  40. if exist %1:\%2\liesmich.bat erase %1:\%2\liesmich.bat
  41. if exist %1:\%2\install.bat erase %1:\%2\install.bat
  42. if exist %1:\%2\drive.exe erase %1:\%2\drive.exe
  43. if exist %1:\%2\ok.txt erase %1:\%2\ok.txt
  44.  
  45. :FERTIG
  46. cls
  47. if exist ok.txt list ok.txt
  48. %1:
  49. cd \%2
  50. goto end
  51.  
  52. :NOPROG
  53. echo 
  54. echo         █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
  55. echo         █  Fehler:                                                █
  56. echo         █  ───────                                                █
  57. echo         █  Zur Installation muß das Quell-Laufwerk, also das      █
  58. echo         █  Disketten-Laufwerk (meistens A:), das aktuelle Lauf-   █
  59. echo         █  werk sein.                                             █
  60. echo         █                                                         █
  61. echo         ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  62. echo:
  63. goto end
  64.  
  65. :NOPARM
  66. echo 
  67. echo         █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
  68. echo         █                                                         █
  69. echo         █   Bitte die Installationsprozedur wie folgt aufrufen:   █
  70. echo         █                                                         █
  71. echo         █      INSTALL [LW] [PATH]                                █
  72. echo         █                                                         █
  73. echo         █      LW   = C  (gültiges Laufwerk OHNE Doppelpunkt)     █
  74. echo         █      PATH = Pfadname (ohne \ am Anfang oder Ende)       █
  75. echo         █                                                         █
  76. echo         █   Beispiel: install  c  test                            █
  77. echo         █       oder: install  d  public\test                     █
  78. echo         █                                                         █
  79. echo         █                                                         █
  80. echo         ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  81. echo:
  82. goto end
  83.  
  84. :ERRDISK
  85. echo 
  86. echo         █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
  87. echo         █  Fehler:                                                █
  88. echo         █  ───────                                                █
  89. echo         █  Auf dieser Diskette fehlt eine benötigte Datei !       █
  90. echo         █  Das heißt, das ist nicht die Original-Shareware-       █
  91. echo         █  diskette. Bitte reklamieren !                          █
  92. echo         █                                                         █
  93. echo         ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  94. echo:
  95. goto end
  96.  
  97. :ERRLW
  98. echo 
  99. echo         █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
  100. echo         █  Fehler:                                                █
  101. echo         █  ───────                                                █
  102. echo         █  Bitte als Laufwerksangabe nur einen Buchstaben ohne    █
  103. echo         █  Doppelpunkt mitgeben !                                 █
  104. echo         █                                                         █
  105. echo         ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  106. echo:
  107. goto end
  108.  
  109. :ERROR
  110. echo 
  111. echo         █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
  112. echo         █  Fehler:                                                █
  113. echo         █  ───────                                                █
  114. echo         █  Bitte INSTALL mit gültigem Ziel-Laufwerk und           █
  115. echo         █  Verzeichnis aufrufen !                                 █
  116. echo         █                                                         █
  117. echo         █  Beispiel: install c test    (2 Parameter)              █
  118. echo         █                                                         █
  119. echo         █  Verzeichnis ohne \ am Anfang oder Ende, also NICHT     █
  120. echo         █   \test oder test\ !                                    █
  121. echo         █                                                         █
  122. echo         ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  123. echo:
  124.  
  125. :END
  126. echo:
  127.