batch coding help

pierrehugo

Well-Known Member
Joined
Feb 14, 2008
Messages
274
Reaction score
0
How would I go about checking if the internet is working on a PPPOE style connection, i would like somting like

if <ping to xxx.xxx.xxx.xxx works> then, else

any help??
 
There are better ways, but you can do this:

------
@echo off
ping x.x.x.x
if errorlevel 1 goto error

echo SUCCESS
goto end

:error
echo ERROR!

:end
-------
 
Top
Sign up to the MyBroadband newsletter
X