For some reason this will not work, it keeps bringing back that it is not there when it is.
@echo off
set ansi=false
type %SystemRoot%\system32\CONFIG.NT | find "device=%SystemRoot%\system32\ansi.sys" && set ansi=true
If %ansi%=="true" (
echo ansi.sys is active.
) else (
echo ansi.sys is not active.
)
pause >nul