Re: A poor man's activity check :)

From: Boyd Williston (boydwilliston.badstring@yahoo.com)
Date: 01/06/02


From: Boyd Williston <boydwilliston.badstring@yahoo.com>
Date: 6 Jan 2002 19:54:51 GMT

Ken S. <ken@ke9nr.#nospam#.org> wrote in
news:39ah3ukpdvdf24te1kn7oturnih19klcp8@4ax.com:

> Hi Art -
>
> On Sun, 06 Jan 2002 16:27:05 GMT, artnpeg@nowhere.com (Art Kopp)
> wrote:
>
>>@echo off
>>cls
>>:here
>>netstat -an
>>goto here
>
> If Win98 supports the -n parameter as NT4 does, you can tell netstat
> to loop on its own.
>
> I don't use a .bat file, I have a shortcut with the following as the
> target:
> C:\WINNT\system32\CMD.EXE /k netstat.exe -a -n 5
>
> -n 5 tells netstat that I want to loop with a 5 second delay.
>
> Ken
> http://www.ke9nr.org/
>

Good hint, but this much simpler command for a shortcut works in Win98:

netstat.exe -a -n 5

Control-C will stop it and shut down the command line window. This
shortcut is now in my 'Internet' folder.



Relevant Pages

  • Re: set /a
    ... It is very simply that you forgot to include the 'setlocal' command ... second run "_conteu" would begin at 51 and so would never stop. ... Otherwise the sample is okay (other than you missed out the 'goto ... loop' and ':loop' lines in your quote, which, I assume, was a oversight) ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: I miss loop
    ... I've done lots of batch files and you sure do have to get, shall we say creative, to branch and make decisions. ... goto full ... In a nested loop situation the exit sub would exit the inner loop and therefore you'd re-enter the loop with any variables declared inside the loop being refreshed, for lack of a better word. ... Like you said, it's not a bad command, just a misused command. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Do While & Loops?
    ... > from within the loop back to the top. ... GoTo is your best option. ... if not isvalid) then goto nextrecord ...
    (microsoft.public.vb.general.discussion)
  • Re: A poor mans activity check :)
    ... >goto here ... I don't use a .bat file, I have a shortcut with the following as the ... -n 5 tells netstat that I want to loop with a 5 second delay. ...
    (comp.security.firewalls)
  • Re: set command line parameters in debugger for console applicatio
    ... I think the shortcut with optional arg would be a fine solution, ... The command line set in the VS IDE is ... So if you do not run the application under debugger, ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.debugging)