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/>  ~

Reply via email to