|
Answer» Hey Guys,
Im trying to refine a batch i got that pretty much loops http://192.168.0.%i% so i can see all the switches and firewalls on all my clients sites. its really annoying because you have to syphon through so many pages just to FIND like 3 switches.
what im looking for is a way to read a return status like page not found and autoclose that tab/page so im only left with online resources.
is this even capable with batch? or do i need to use vbs and handles?
help appreciated
Show us your batch file. It's unclear what you are doing.
You can loop through an octet and only open the IPs that RESPOND to a ping.ping wont help because its on a network with workstations so every ip is pretty much taken.
program is basic, heres some pseudocode
variable = 1 loop http://10.1.1.variable variable++ if variable = 255 goto end goto loop
end exit
if i use a ping and %errorlevel% it will still open webpage IP's that workstations use. its a good idea, im now thinking what about telnet onto port 80 and RESPONSE, ill do some research and see if it will return errorlevel but if you know the answer please post You could use WGET to download the DEFAULT index.html and FINDSTR to search for a KEYWORD in the HTML file, such as 'Username'
|