@echo off
netsh diag show gateway | find "DefaultIPGateway" >data.txt
for /f "TOKENS=3 DELIMS= " %%a in (data.txt) do "c:\Program Files\Internet Explorer\iexplore.exe" %%a
