Question : Ping a list of addresses in ms-dos

I have a computer that is in an impossible location to get to.  It is about 20 feet in the air so physically going to the computer without jumping through lots of hoops isn't an option.  

Basically, this computer is supposed to have a static IP address, but for some reason I can no longer log in remotely.  I don't have access to the router tables, so logging into a server or something like that is out of the question as well.

I need to find out the IP address for this computer so that I can log in and find out why it changed addresses.  I know most of the IP address.  Let us say that they are either on 192.168.1.*** or 192.168.2.***.  This means that I can narrow the possible addresses down to about 500+ computers.  Also, it is most likely that the address is less than 100.

So, what I need is code for an ms-dos batch file, that will ping once, not 4 times, to a given address. For example 192.168.1.2, then it pings 192.168.1.3, and so on.  Once it has pinged 192.168.1.100 it stops.  And I would like the results redirected to a text file so that I can easily read the results and attempt to connect to the computers that sent back a response.

Any help would be appreciated, or a better way would be even better.

Answer : Ping a list of addresses in ms-dos

I've used Angry IP Scan for a long time now...works very well.  http://www.angryip.org/w/Home

It's a Windows-based app, but it pings all IP addresses within a range or subnet, then resolves host names, and you can export to a text file.
Random Solutions  
 
programming4us programming4us