[windows2000] Re: IP / ARP listing

  • From: "Sullivan, Glenn" <GSullivan@xxxxxxxxxxxxxx>
  • To: "'windows2000@xxxxxxxxxxxxx'" <windows2000@xxxxxxxxxxxxx>
  • Date: Thu, 10 Oct 2002 09:11:35 -0400

If you run it from a command file or batch file, you need to double up the %
like you did.

If you just type the command I sent in at a command prompt, it should work
fine.

Glenn Sullivan, MCSE+I  MCDBA
David Clark Company Inc.


-----Original Message-----
From: slymax [mailto:groups@xxxxxxxxxx]
Sent: Thursday, October 10, 2002 9:05 AM
To: windows2000@xxxxxxxxxxxxx
Subject: [windows2000] Re: IP / ARP listing



Glen,
Your script did not work when I ran it on Windows 2000.  I played with
it a bit, and got this one to work:

for /l %%i in (1,1,255) do ping -n 1 192.168.%%i >> pings.txt

Steve


-----Original Message-----
From: windows2000-bounce@xxxxxxxxxxxxx
[mailto:windows2000-bounce@xxxxxxxxxxxxx] On Behalf Of Sullivan, Glenn
Sent: Thursday, October 10, 2002 8:57 AM
To: 'windows2000@xxxxxxxxxxxxx'
Subject: [windows2000] Re: IP / ARP listing



for /l %i in (1,1,255) do ping -n 1 192.168.1.%i >> Pings.txt

This will send a single ping to all numbers from 1 to 255 in the
192.168.1.x range, and log the results into pings.txt in the current
directory.

Glenn Sullivan, MCSE+I  MCDBA
David Clark Company Inc.


==================================
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm

==================================
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm

Other related posts: