zai,
Код:

@Echo Off
cls
Set "FindGateway=192.168.0.1"
Set /A L=0
FOR /F "tokens=3 delims= " %%a in ('route print') Do If "%%a"=="%FindGateway%" Set /A L=1
If %L%==0 (Echo Gateway %FindGateway% NOT present) else (Echo Gateway %FindGateway% PRESENT)
pause