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
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
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
For /L %a in (1,0,2) do whatever
will do it forever. That is count from 1 to 2 in steps of 0
...Tim
-Original Message-
From: Mike Mitchell [mailto:its.m...@analogy.ca]
Sent: Tuesday, April 21, 2009 6:06 AM
To: NT System Admin Issues
Subject: RE: batch file question - loop via