home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
t
/
tsbat.zip
/
TSBAT.EXE
/
TESTANSI.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-08-04
|
830b
|
27 lines
echo off
echo ┌───────────────────────────────────────────────────┐
echo │ Test if a screen driver has been loaded or not │
echo │ By Prof. Timo Salmi, ts@chyde.uwasa.fi, 4-Aug-92 │
echo └───────────────────────────────────────────────────┘
echo.
rem Requires the isansi.exe program at path
set _found=
if exist isansi.exe set _found=yes
for %%d in (%path%) do if exist %%d\isansi.exe set _found=yes
for %%d in (%path%) do if exist %%disansi.exe set _found=yes
if not "%_found%"=="yes" goto _no_isansi
isansi
if errorlevel==1 if not errorlevel==2 echo No ansi-type screen driver is available
if errorlevel==0 if not errorlevel==1 echo An ansi-type screen driver is available
goto _out
:_no_isansi
echo ISANSI.EXE must be in the present directory or at path.
goto _out
:_out
set _found=
echo on