Need someone to write me a script / bat file to PING please

Soldato
Joined
11 Jun 2004
Posts
4,222
Location
Middlesex, London
Hi all,

Could somebody please help or advise.

I need a simple script or bat (batch) file which I can edit/add a whole load of IP addresses to..

So when I run it - it just goes away and pings them all and then somehow shows me the results... or outputs them to a small file..?

Thanks
 
that should be a start
This. Let's make it a little prettier though.

Code:
ping -n 1 [ipaddress1] > output.txt
ping -n 1 [ipaddress2] >> output.txt
ping -n 1 [ipaddress3] >> output.txt
etc.

The -n switch tells it how many echo request to get. Just one will run much faster that the default of 4, and also looks prettier in the output file.

Note the first line only has one '>'. This designates a blank document. Using '>>' will append to the existing document.
 
Back
Top Bottom