Forum Home
Press F1
 
Thread ID: 21234 2002-06-21 01:13:00 How do you make a Ping batch file? Susan B (19) Press F1
Post ID Timestamp Content User
55677 2002-06-21 03:37:00 I use a Windows program called Ping Plotter. It has a dual function. It is actually a tracert program. You can set it to ping the address continually and it will chart the response time and display its current, highest and lowest ping time. Plus you can set alert parameters to email you or play a wave file on certain conditions.

Not sure if you are interested. You can download it from http://www.pingplotter.com/
nzStan (440)
55678 2002-06-21 03:38:00 Sorry I didn't complete my last post and now I see JM's beat me to it.
The only thing I'd add would be the & pause after the bat (or cmd) file and the IP address to ping will at least leave the window open to enable you to see the results. Also you can add to my last post the fact you can do a TRACERT also on the same cmd line:

cmd.exe /x /c ping pressf1.co.nz & tracert pressf1.co.nz & pause

well whatever...
just a dimes worth
Cheers, Babe.
Babe Ruth (416)
55679 2002-06-21 03:42:00 Why do I have to make life so complicated for myself? Duh! Don't know why I thought I needed a batch file, must be Fridayitis.

So far Billy's suggestion does the trick nicely - thanks for the F3 and cls tricks!

I also like JM's suggestion, but I'm back to the problem of the info whizzing by too quick. The path in the Target box is:
C:\WINDOWS\PING.EXE www.orcon.net.nz
Can I add something to the end of that to stop it disappearing on me?
A shortcut would do the trick nicely, of course.

And thanks for all your help people!
Susan B (19)
55680 2002-06-21 03:43:00 Babe, I'm using Win98 :-) Susan B (19)
55681 2002-06-21 05:21:00 I suspect that you don't have ping . exe in your default path . Try a batch file which says:
@echo off
c:\path\to\prog\ping www . blah . com

That should work .

BTW someone suggested leaving off the "www" of the example sitename . That is a Bad Idea . It "works" in most *browsers*, but it actually slows you down . What happens is that your system doesn't know an IP address . It asks a DNS server . It doesn't know . It might aske a few DNS servers up the chain . The first DNS server tells your browser that it can't find the site . The *browser* knows it wants to do an HTTP, so it sticks "www" on the front and asks again . That might work (if the site actually has "www" in front of its name --- that is *not* compulsory) . (The same applies to leaving off the "/" after the site name if you are not looking for an actual page (which has a . htm, . html, . shtml, etc extension --- and *must* not have the directory deliniter "/" after it) . If the "/" is missing, the site hasn't *got* a page called by its sitename . It tells your browser, so the browser *adds* the "/" and tries again . It then will get the default page in that *directory* (index . html, or default . html) .

Ping is not smart . It does what it is told . If you tell it a non-existent sitename, it *can't* find it . It does not know about any protocols except its own, and makes no assumptions about what sites "might" be called .
Graham L (2)
55682 2002-06-21 05:23:00 Suan, can you open a DOS-prompt? type the ping command into the dos box. That way after it has finished, the box will still be there with all the info in it for you to view at your leisure.

ie Goto Start->Programs->DOS-Prompt Then type you ping command into the dos box.

G P
Graham Petrie (449)
55683 2002-06-21 05:26:00 Susan, can you open a DOS-prompt? type the ping command into the dos box. That way after it has finished, the box will still be there with all the info in it for you to view at your leisure.

ie Goto Start->Programs->DOS-Prompt Then type you ping command into the dos box.

G P
Graham Petrie (449)
55684 2002-06-21 06:09:00 > Can I add something to the end of that to stop it disappearing on me?

Well that would explain your problem with the batch files. As far as I am aware the @echo off means that the box won't stay around.
-=JM=- (16)
55685 2002-06-21 06:17:00 I don't know why you still want to get this to work in DOS?

Download the free version of PingPlotter at www.pingplotter.com

No fuss, no hassle, no retyping ip address or URLs, no F3 etc etc etc.
nzStan (440)
55686 2002-06-21 06:23:00 Congratulations Graham!

You seem to have managed the first genuine double-post. Heaps of the old version were imported when Press F1 data was switched across but we failed miserably in our attempts to double post during the beta testing.

Of course, it could just be your memory failing and you didn't realise you had already posted that message, I see there were three minutes between posts. ]:)

Cheers

Billy 8-{) :D :D :D
Billy T (70)
1 2 3 4 5 6