ping -n 1 192.168.1.1 | find "TTL=" >nul if errorlevel 1 ( echo Server not reachable ) else ( echo Server reachable ) |
e-mail:s_k_ngai
Subject:[From Blog]batch file command check network connection to server
Ideas that keep in mind, not sure useful or not, just want to write it out
ping -n 1 192.168.1.1 | find "TTL=" >nul if errorlevel 1 ( echo Server not reachable ) else ( echo Server reachable ) |