Ahhh!!! Thank you!


On Tue, Apr 21, 2009 at 9:05 AM, Mike Mitchell <its.m...@analogy.ca> wrote:
> Try this... it'll do it 4000 times...
>
> for /L %a (1,1,4000) do netstat -a | find "8530" && ping 127.0.0.0 > nul
>
> -----Original Message-----
> From: 8400...@gmail.com [mailto:8400...@gmail.com] On Behalf Of jond
> Sent: Tuesday, April 21, 2009 5:24 am
> To: NT System Admin Issues
> Subject: batch file question - loop via commandline
>
> Does anyone know how to make a loop from the command line(instead of
> just making a batch file)?
> Say for example, I want to have something like this run:
> :start
> netstat -a | find "8530"
> ping 127.0.0.0 > nul
> goto start
>
> BUT, I just wanted to log into a command prompt and type it in?
>
> I know I can use '&&' to link things, but I don't see how to loop.
> I can can do:
> netstat -a | find "8530" && ping 127.0.0.0 > nul
> and that works, but something like this does not work:
> :start && netstat -a | find "8530" && ping 127.0.0.0 > nul && goto start
>
>
> Thanks in advance,
> Jon
>
>
>
> .
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to