Forum Home
Press F1
 
Thread ID: 86194 2007-12-14 21:53:00 How do you make a Ping batch file? A1Raoul (13256) Press F1
Post ID Timestamp Content User
628279 2007-12-14 21:53:00 I need to ping a url and then have an email sent to the administrator if the ping fails... How is that done? A1Raoul (13256)
628280 2007-12-14 22:16:00 Start a new thread for that please - this one is ancient. Also welcome to PressF1 :D Erayd (23)
628281 2008-01-07 16:49:00 I didn't read the whole thread but this is what you should do

1. right click your desktop and choose new \ shortcut
2. in the dialogue box type
%windir%\System32\ping.exe domain.com -t -w 3000
3. right click the icon and choose properties change the icon if you like
and replace the domain.com with something of your choosing.
4. double click the icon and look at the results.

I use this to keep tabs on my moms computer for her and to keep her
crappy dsl connection alive. in my case I ping my router at home once
every four hours so that I can check the log and see what her ip is so
that I can get into the router or remote desktop to her computer if
need be. This is pretty much a fool proof method. if you are just using it
as a simple keep alive you can set the option under properties to have it
open minimized. This works on all windows XP and server 2000/2003
I haven't tryed it on vista but I would assume it should work there too
however User Access Control may complain about it on vista.

Hope that helps there really is no need for a batch file to do such a simple
task.

GreatDane
wicodeproject (13257)
628282 2008-01-07 18:06:00 add this to to the batch syntax already given


START mailto:emailaddress@somewhere.com?subject=test&body=At%%20%DATE%,%%20%TIME%

bit research in google should help figure out how to auto send this will only lauch your email program with the enclosed bits

google send email from batch file
beama (111)
628283 2008-01-08 06:33:00 this maybe a better option

Blat (sourceforge.net)
beama (111)
1