home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 30 fixes_v
/
30-fixes_v.zip
/
x24os2.zip
/
STBINST.CMD
< prev
Wrap
OS/2 REXX Batch file
|
1994-08-19
|
2KB
|
70 lines
@ECHO off
IF .%1. == .. GOTO USAGE
IF .%2. == .. GOTO USAGE
IF .%3. == .0. GOTO WORKS
IF .%3. == .1. GOTO WORKS
IF .%3. == .2. GOTO WORKS
IF .%3. == .3. GOTO WORKS
IF .%3. == .4. GOTO WORKS
IF .%3. == .5. GOTO WORKS
IF .%3. == .6. GOTO WORKS
IF .%3. == .7. GOTO WORKS
:USAGE
ECHO The command line is in error. Compare it with the following examples.
ECHO .
ECHO Example usage: STBINST D:\TEMP C: 5
ECHO . STBINST A: C: 3
ECHO .
:WORKS
ECHO The three parameters on the STBINST command line are the location of the
ECHO STB OS/2 driver installation utilities, the drive to which OS/2 has been
ECHO installed, and the monitor type. If you did not enter these values
ECHO correctly, press CNTL-C and restart the batch file with the correct values.
ECHO The refresh rates supported by each monitor type are:
ECHO .
ECHO Type 640x480 800x600 1024x768
ECHO 0 60 Hz 56 Hz Interlaced
ECHO 1 60 Hz 56 Hz 60 Hz
ECHO 2 72 Hz 72 Hz 70 Hz
ECHO 3 72 Hz 72 Hz 60 Hz
ECHO 4 60 Hz 60 Hz Interlaced
ECHO 5 60 Hz 60 Hz 60 Hz
ECHO 6 72 Hz 72 Hz 76 Hz
ECHO 7 72 Hz 60 Hz 60 Hz
ECHO .
ECHO You can check the currently selected monitor type by typing X24CFG ? or
ECHO VL24CFG ? at the DOS command prompt if you are not sure.
IF .%1. == .. GOTO EXIT
IF .%2. == .. GOTO EXIT
IF .%3. == .0. GOTO PROCESS
IF .%3. == .1. GOTO PROCESS
IF .%3. == .2. GOTO PROCESS
IF .%3. == .3. GOTO PROCESS
IF .%3. == .4. GOTO PROCESS
IF .%3. == .5. GOTO PROCESS
IF .%3. == .6. GOTO PROCESS
IF .%3. == .7. GOTO PROCESS
GOTO EXIT
:PROCESS
ECHO .
ECHO Press RETURN or ENTER to adapt your IBM S3 32-bit drivers to the STB
ECHO Powergraph X24 or VL24 adapter card, or press CNTL-C to cancel the
ECHO adaptation.
PAUSE
%2
CD \OS2
ECHO REN SVGADATA.PMI SVGADATA.STB
REN SVGADATA.PMI SVGADATA.STB
ECHO %1\FIXIT SVGADATA.STB SVGADATA.PMI %3
%1\FIXIT SVGADATA.STB SVGADATA.PMI %3
IF .%4. == .WARP2. GOTO EXIT
IF .%4. == .warp2. GOTO EXIT
IF .%4. == .WARP. GOTO EXIT
IF .%4. == .warp. GOTO EXIT
ECHO %1\PMI-CHOP
%1\PMI-CHOP
:EXIT