home *** CD-ROM | disk | FTP | other *** search
/ Best of German Only 1 / romside_best_of_german_only_1.iso / branchen / fb2000 / install.bat < prev    next >
DOS Batch File  |  1991-06-05  |  3KB  |  105 lines

  1. echo off
  2. if %1x==x a:install C: \FB2000
  3. if %2x==x a:install %1 \FB2000
  4. cls
  5. echo ┌─────────────────────────────────────────────────────────────────────┐
  6. echo │ Installation für FB2000 (c) 1990 by CSO Harald Wagener, 5900 Siegen │
  7. echo │ RELEASE R10.M02  VERSION 06.1991                                    │
  8. echo └─────────────────────────────────────────────────────────────────────┘
  9. echo  
  10. echo Aufrufsyntax:       A:INSTALL  [LW:]
  11. echo -------------
  12. echo z.B.                A:INSTALL               Installiere in C:\FB2000
  13. echo oder                A:INSTALL D:            Installiere in D:\FB2000
  14. echo  
  15. if not exist a:bat_util.exe goto ende
  16. set cl_boot=N
  17. if not "%cl_boot%"=="N" goto fehl_conf
  18.  
  19. echo Ihr Aufruf :        A:INSTALL %1 %2  
  20. echo ------------                              = installiere in  %1%2
  21. echo  
  22. a:bat_util !chkpar %1 %2
  23. if errorlevel 2 goto fehl_p2
  24. if errorlevel 1 goto fehl_p1
  25. a:bat_util "Ist dies korrekt (J/N) ? " "JN"
  26. if errorlevel 2 goto ende
  27.  
  28. rem ---------------- Kontrolle --------------------------------------------
  29. %1
  30. echo  
  31. echo Für die Installation werden Sie 8 MBytes auf der Festplatte benötigen.
  32. a:bat_util !space 8192
  33. if errorlevel 1 goto fehl_sp
  34. echo Die vorhandene Plattenkapazität ist für die Installation ausreichend
  35. echo  
  36. a:bat_util "Fortsetzung der Installation (J/N) ? " "JN"
  37. if errorlevel 2 goto ende
  38.  
  39. %1
  40. cd \
  41. if not exist %2\NUL md %2
  42. cd %2
  43.  
  44. if not exist *.* goto anf_1
  45. echo  
  46. dir *.* /w
  47. echo  
  48. echo Warnung: das Unterverzeichnis ist nicht leer !
  49. a:bat_util "Fortsetzung der Installation (J/N) ? " "JN"
  50. if errorlevel 2 goto ende
  51.  
  52. :anf_1
  53.    if not exist *.* set cl_aus=N
  54.    if     exist *.* set cl_aus=J
  55.  
  56.    copy a:instal2.bat *.* >NUL
  57.    instal2 %1 %2
  58.    
  59. rem ------------Fortsetzung der Installation in INSTAL2 -------------------
  60. goto ende
  61.  
  62. rem ---------------- Fehler-Meldungen -------------------------------------
  63. :fehl_p1
  64.    echo Aufruf-Parameter 1 = "%1" nicht korrekt !
  65.    goto ende
  66. :fehl_p2
  67.    echo Aufruf-Parameter 2 = "%2" nicht korrekt !
  68.    goto ende
  69. :fehl_sp
  70.    echo Die verfügbare Plattenkapazität ist für die FB2000 Installation
  71.    echo NICHT ausreichend. Platte bereinigen und Installation erneut durchführen.
  72.    goto ende
  73. :fehl_conf
  74.  
  75. :no_shell
  76.  
  77. :fehler
  78.    echo  
  79.    echo Fehler. Die Installation konnte NICHT korrekt durchgeführt werden.
  80.    echo Wahrscheinlich nicht genügende Plattenkapazität 
  81.    echo oder falsche Original FB2000 Diskette.
  82.    echo Platte bereinigen und Installation erneut durchführen.
  83.    goto ende
  84.  
  85. rem ---------------- Installation beendet ---------------------------------
  86. :fertig
  87.    if exist bat_util.exe del bat_util.exe
  88.    echo  
  89.    echo Die Installation ist beendet. Die Original-Diskette entnehmen und
  90.    echo gut aufbewahren.
  91.    echo  
  92.    echo Das FB2000 Programm kann jetzt mit FB2000 aus dem Verzeichnis FB2000
  93.    echo gestartet werden, siehe Handbuch.
  94. :booten
  95.    if %cl_boot%==N goto ende
  96.    echo  
  97.    echo Wegen der CONFIG.SYS Änderung muß jetzt durch den gleichzeitigen Druck
  98.    echo auf die   [Ctrl] [Alt] [Del]   Tasten ein Warmstart durchgeführt werden.
  99. :schleife
  100.    goto schleife
  101.  
  102. :ende
  103. set cl_aus=
  104. set cl_boot=
  105.