From ComputerHope
@ping 127.0.0.1 -n 1 > nul
@IF ERRORLEVEL 1 GOTO test1
@IF ERRORLEVEL 0 GOTO test0
:test1
echo test1
:test0
echo test0
How to Check Connection and Control Program in Batch Script
No TrackBacks
TrackBack URL: http://server.everfine.com.tw/blog/mt-tb.cgi/297


