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
55717 2008-12-04 01:18:00 Cool.
I got exactly what I was looking for.
The conventional way of creating a batch file for other versions of windows using a notepad didn't work on my windows 2000 professional desktop PC.
The batch file created in this manner will just repeat ping command without showing out the ping results.

It took me almost an hour to search the internet to get to such a simple solution.

Thanks to you :)


Cool.
I got exactly what I was looking for.
The conventional way of creating a batch file for other versions of windows using a notepad didn't work on my windows 2000 professional desktop PC.
The batch file created in this manner will just repeat ping command without showing out the ping results.

It took me almost an hour to search the internet to get to such a simple solution.

Thanks to you :)


Why bother with a batch file.

For such a simple task it is much more convenient to create a shortcut.

When on the desktop, right-click and select to have a new shortcut.
Set it to point to "ping www.pcworld.co.nz" and all is done.

For easiest use place this short cut in the quick launch area.
chikop (502)
55718 2008-12-04 01:20:00 . chikop (502)
55719 2008-12-04 01:23:00 Actually, you *dont* need a . after the IP's, nor do you need to have "cmd" afterwards either. In fact, its probably better that you dont ...
Try saving something like this as a .bat file:

ping ihug.co.nz
pause

Bear in mind that if you're saving from within Notepad, its easiest if you put the name in speech marks, to *force* it to save it with the name exactly as you write it, such as:

"pingtest.bat"
Chilling_Silence (9)
55720 2008-12-04 01:32:00 I tried this way too before but all it gives a blank command window i.e. no ping results shown. The method shown by -=JM=- works. chikop (502)
1 2 3 4 5 6