i want to design a program that can be used on any machine to ping their gateway.
basically, what i was thinking i could do is create a batch file that first ran ipconfig. then it would run the ping command. to get the gateway, i was thinking using some sort of a command that could use information in another designated line.
ping (line 2 characters 27-37)
I was thinking along the lines of using something like the goto or call commands, but i don't know how to use them, or if it is even possible to extract characters from a previous command line. Any suggestions on how i can make this .bat would be greatly appreciated!