PDA

View Full Version : connection monitor


trdr
May 14th, 2009, 12:38 AM
is there a freeware that will alert if the connection fails
between my computer and a specific ip address ?

Sully
May 14th, 2009, 05:49 AM
You can build your own out of a batch file. Not pretty but it works. To do this, you will need to find a copy of CHOICE.COM, which windows 98se has and I have used on XP. So, find a copy of that, then make a batch file with the following:

REM place a :: in front of both @Echo Off lines to see the output of this batch file
@Echo Off

REM set what you want the website to be. You can use ip address if desired
Set website=google.com

:Testing
Ping %website% -n 2 > nul
If ErrorLevel 1 Goto AlertMe

:Timing
REM the value 03 below is a pause time. Change to your needs
Type nul|choice /c:y /t:y,03>nul
Goto Testing

:AlertMe
REM note below that you can remark out the "@Echo  " with a ::
REM then you can remove the :: from the line after that if you want a wav file to play
REM instead of a beep. Copy the line "@Echo  " more than once to get the effect of
REM beeps you desire.
@Echo On
@Echo 
::sndrec32 /play /close "C:\Windows\Media\Notify.wav"
@Echo off
Goto Timing


Create this batch file, and place CHOICE.COM wherever the batch file lives. Without CHOICE.COM living next to the batch file, it does not pause. Click the X to terminate the command prompt window this batch file opens, or press Control+C to break the batch job.

Sul.