hab ich auch schon überlegt - schien mir aber zuerst zu umständlich
schaut dann in etwa so aus?:
...
ping
www.google.at > ping.txt
find 100% ping.txt
if not %errorlevel%==0 goto online
goto offline
:offline
echo keine verbindung - starten sie skript nochmal
exit
:online
ipconfig /all >ip.txt
...