Regularly, at work, I will be given a big list of IPs and different ports to check. In cases where I just need to show they’re reachable, I will make a batch file with multiple lines like
ping 192.168.1.1
ping 192.168.1.2
…
but often, they need different ports. I usually just telnet into them and, if it goes to a black screen, I know it’s up. what I would like to do is something like I do above, but with telnet so it runs the command, closes the window when it opens and runs another. Any ideas?
The diag context was removed in Windows 7.
You could also use nmap or expect (scriptable telnet).
Tony