home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR3
/
KLS30.ZIP
/
COLOR.BAT
next >
Wrap
DOS Batch File
|
1992-05-01
|
882b
|
45 lines
echo off
if .%1 == . goto help
goto %1
:BLACK
kls 0
goto end
:BLUE
kls 1
goto end
:GREEN
kls 2
goto end
:CYAN
kls 3
goto end
:RED
kls 4
goto end
:MAGENTA
kls 5
goto end
:BROWN
kls 6
goto end
:WHITE
kls 7
:end
if errorlevel 5 echo You have a Hercules display adapter.
if errorlevel 5 goto done
if errorlevel 4 echo You have an MCGA display adapter.
if errorlevel 4 goto done
if errorlevel 3 echo You have a VGA display adapter.
if errorlevel 3 goto done
if errorlevel 2 echo You have an EGA display adapter.
if errorlevel 2 goto done
if errorlevel 1 echo You have a CGA display adapter.
if errorlevel 1 goto done
echo You have a monochrome display adapter.
goto done
:help
echo To change the screen color, type COLOR followed by one of the
echo following screen colors:
echo . BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN, WHITE
:done