if ping fails send email.
Download bmail.exe and copy it into windows folder
create *.bat file run in startup.
@echo off
:Again
ping 10.232.4.2| find /i "bytes=" || goto Fail
ping localhost -n 3600 > nul
goto Again
:Fail
bmail -s 10.232.2.2 -t to@xyz.com -f xys@abc.com -h -a "Server" -b "Opps, 10.232.4.2 down at %time%"
goto Again
Download bmail from:
http://www.drivehq.com/file/DFPublishFile.aspx/FileID1471331262/Keyhkn3o83csp7a/bmailv107.zip
Download bmail.exe and copy it into windows folder
create *.bat file run in startup.
@echo off
:Again
ping 10.232.4.2| find /i "bytes=" || goto Fail
ping localhost -n 3600 > nul
goto Again
:Fail
bmail -s 10.232.2.2 -t to@xyz.com -f xys@abc.com -h -a "Server" -b "Opps, 10.232.4.2 down at %time%"
goto Again
Download bmail from:
http://www.drivehq.com/file/DFPublishFile.aspx/FileID1471331262/Keyhkn3o83csp7a/bmailv107.zip