1.

Solve : Pinging ??

Answer»

is it possible PING an specific ip and if the ip gives answer then RUN a specific command something

ping 192.162.1.52 if return GOTO weei
exit
:weei
echo it works!
pauseQuote

...and if the ip gives answer

Ping ALWAYS gives a response so try and be more specific next time. It would also help us if you mentioned your OS.

Code: [Select]@echo off
ping -N 1 192.162.1.52 | find /i "reply from" > nul
if not errorlevel 1 echo it works

Good luck. 8-)


Discussion

No Comment Found