Follow via:
RSS
Email Alert
Question
0 Votes
+ -

simple program for Ping in a batch file

hello all,

is their any simple program in which i can ping different IP addresses using batch file?

its like if i ping 209.131.36.158, 202.95.235.88, and 72.47.193.80. instead i'll wait 209.131.36.158 to return to C:\> line or prompt, it will jcontinue to ping the next IP address and the next IP address.

all i need to see is continuity in its replies or results of ping that it has consistent flows like 20-intervals before the next IP address. then it will run in command prompt using batch file, and will toggle repeat to the very beginning IP address after the last IP address was run.

i can also stop it anytime in between by applying Ctrl+Z.

it will loop or simple cycle from start to end then back to start after it ends. i planned to save it in my desktop for ease to manage so to run easily.

i'm not just familiar w/ programming or i just don't have the knowhow what's follow next.

i appreciate any help or assistance on this thread.

cheers!
19th Aug 2009

Answers (1)

0 Votes
+ -
There is a way...
create a file called PingList.cmd, then paste the following in it...

@echo off
:beginning
ping -n 20 209.131.36.158
ping -n 20 202.95.235.88
ping -n 20 72.47.193.80
goto beginning
19th Aug 2009
Answer the question
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.