home *** CD-ROM | disk | FTP | other *** search
- echo off
- echo ┌───────────────────────────────────────────────────┐
- echo │ Test if a screen driver has been loaded or not │
- echo │ By Prof. Timo Salmi, ts@chyde.uwasa.fi, 9-Nov-91 │
- 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\inansi.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
-