home *** CD-ROM | disk | FTP | other *** search
/ Media Gallery 1996 January / MG_0196.ISO / spea / install / stplus / util1 / init1.bat < prev    next >
DOS Batch File  |  1995-07-17  |  2KB  |  79 lines

  1. @echo off
  2. %1:
  3. cd %2
  4.  
  5. set gdc=%1:%2
  6.  
  7. if exist showtime.ini goto test
  8.  
  9. :init
  10. stinit
  11. if errorlevel 3 goto nospea
  12. if errorlevel 2 goto noshowtime
  13. rem (ERRORLEVEL 1: ST. PLUS VL Interrupt nicht gespeichert oder ST. PLUS PCI)
  14. rem (ERRORLEVEL 0: ST. PLUS VL Interrupt gespeichert)
  15.  
  16. :test
  17. sttest /q
  18. if errorlevel 3 goto noshowtime
  19. if errorlevel 2 goto pcierror
  20. if errorlevel 1 goto vlerror
  21. if errorlevel 0 goto ok
  22.  
  23. :nospea
  24. if %3$ == 2$ echo Keine SPEA Karte installiert!
  25. if %3$ == 1$ echo No SPEA board installed!
  26. goto abbruch
  27.  
  28. :noshowtime
  29. if %3$ == 2$ echo Keine SHOWTIME PLUS Karte installiert!
  30. if %3$ == 1$ echo No SHOWTIME PLUS board installed!
  31. goto abbruch
  32.  
  33. :pcierror
  34. if %3$ == 2$ echo SHOWTIME PLUS PCI: Falsche IRQ-Einstellung. Lesen Sie in Datei README
  35. if %3$ == 2$ echo und in Anhang C ihres SHOWTIME PLUS Handbuches nach.
  36. if %3$ == 1$ echo SHOWTIME PLUS PCI: Wrong IRQ setting. Please read the README file
  37. if %3$ == 1$ echo and appendix C of your SHOWTIME PLUS manual.
  38. goto abbruch
  39.  
  40. :vlerror
  41. if %3$ == 2$ echo SHOWTIME PLUS VL: Falsche IRQ-Einstellung. Konfiguration wiederholen (j/n) ?
  42. if %3$ == 1$ echo SHOWTIME PLUS VL: Wrong IRQ setting. Repeat configuration (y/n) ?
  43. frage
  44. rem "y":
  45. if errorlevel 122 goto vlerror
  46. if errorlevel 121 goto init
  47. rem "n":
  48. if errorlevel 111 goto vlerror
  49. if errorlevel 110 goto abbruch
  50. rem "j":
  51. if errorlevel 107 goto vlerror
  52. if errorlevel 106 goto init
  53. rem "Y":
  54. if errorlevel 90 goto vlerror
  55. if errorlevel 89 goto init
  56. rem "N":
  57. if errorlevel 79 goto vlerror
  58. if errorlevel 78 goto abbruch
  59. rem "J":
  60. if errorlevel 75 goto vlerror
  61. if errorlevel 74 goto init
  62.  
  63. :ok
  64. if %3$ == 2$ echo SHOWTIME PLUS: Konfiguration erfolgreich beendet.
  65. if %3$ == 1$ echo SHOWTIME PLUS: Configuration successfully terminated.
  66. goto initende
  67.  
  68. :abbruch
  69. if %3$ == 2$ echo Konfiguration abgebrochen!
  70. if %3$ == 1$ echo Configuration aborted!
  71. pause
  72. goto exit
  73.  
  74. :initende
  75. if not %4$ == -0$ stmode %4
  76. stmode
  77.  
  78. :exit
  79.