Ping
I know the syntax and the functionality of
ping .
ping ip address of the machine.
But what i need is i want to create a batch
file in the batch file i want to specify
loop condition say ping for 10 times or 20
times.How to perform this.
Web Development
I know the syntax and the functionality of
ping .
ping ip address of the machine.
But what i need is i want to create a batch
file in the batch file i want to specify
loop condition say ping for 10 times or 20
times.How to perform this.
by donq
by jay_patrick
by ann777
example of looping 10 times (i.e., 10 "-" signs)
set count=
:loop
set count=%count%-
command 1
command 2
if not "%count%"=="----------" %then% goto loop
%else% set count=
you'd place the ping servername -n 10 within "command 1"
look at http://www.glue.umd.edu/~nsw/ench250/batch.htm
for more information.
This discussion is closed to new replies.
Sort by Trending