home *** CD-ROM | disk | FTP | other *** search
- @echo off
- %1:
- cd %2
-
- call setgdc
-
- if %5$ == stmode$ goto initende
-
- :init
- stinit
- if errorlevel 3 goto nospea
- if errorlevel 2 goto noshowtime
- rem (ERRORLEVEL 1: ST. PLUS VL Interrupt nicht gespeichert oder ST. PLUS PCI)
- rem (ERRORLEVEL 0: ST. PLUS VL Interrupt gespeichert)
-
- :test
- sttest /q
- if errorlevel 3 goto noshowtime
- if errorlevel 2 goto pcierror
- if errorlevel 1 goto vlerror
- if errorlevel 0 goto ok
-
- :nospea
- if %3$ == 2$ echo Keine SPEA Karte installiert!
- if %3$ == 1$ echo No SPEA board installed!
- goto abbruch
-
- :noshowtime
- if %3$ == 2$ echo Keine SHOWTIME PLUS Karte installiert!
- if %3$ == 1$ echo No SHOWTIME PLUS board installed!
- goto abbruch
-
- :pcierror
- if %3$ == 2$ echo SHOWTIME PLUS PCI: Falsche IRQ-Einstellung. Lesen Sie in Datei README
- if %3$ == 2$ echo und in Anhang C ihres SHOWTIME PLUS Handbuches nach.
- if %3$ == 1$ echo SHOWTIME PLUS PCI: Wrong IRQ setting. Please read the README file
- if %3$ == 1$ echo and appendix C of your SHOWTIME PLUS manual.
- goto abbruch
-
- :vlerror
- if %3$ == 2$ echo SHOWTIME PLUS VL: Falsche IRQ-Einstellung. Konfiguration wiederholen (j/n) ?
- if %3$ == 1$ echo SHOWTIME PLUS VL: Wrong IRQ setting. Repeat configuration (y/n) ?
- frage
- rem "y":
- if errorlevel 122 goto vlerror
- if errorlevel 121 goto init
- rem "n":
- if errorlevel 111 goto vlerror
- if errorlevel 110 goto abbruch
- rem "j":
- if errorlevel 107 goto vlerror
- if errorlevel 106 goto init
- rem "Y":
- if errorlevel 90 goto vlerror
- if errorlevel 89 goto init
- rem "N":
- if errorlevel 79 goto vlerror
- if errorlevel 78 goto abbruch
- rem "J":
- if errorlevel 75 goto vlerror
- if errorlevel 74 goto init
-
- :ok
- if %3$ == 2$ echo SHOWTIME PLUS: Konfiguration erfolgreich beendet.
- if %3$ == 1$ echo SHOWTIME PLUS: Configuration successfully terminated.
- goto initende
-
- :abbruch
- if %3$ == 2$ echo Konfiguration abgebrochen!
- if %3$ == 1$ echo Configuration aborted!
- goto exit
-
- :initende
- if not %4$ == -0$ stmode %4
- stmode
- rem show readme
- rem if not exist showtime.txt if exist st.txt rename st.txt showtime.txt
-
- :exit