here is the whole idea: I have a menu to test ping different DNS Servers in a batch file just like below:
:MainMenu
ECHO 1. DNS Server 1
ECHO 2. DNS Server 2
Now when the user chooses one of the options above, the process starts to ping
the selected server in this case I use google DNS 8.8.8.8
:
:loopStarter
ECHO ***AUTO PING MODE IS ENABLED***
ECHO Pinging...
ping 8.8.8.8
CLS
GOTO loopStarter
As you can see this bunch of code creates a loop and pings
the server and never stops,
HOWEVER
I want to stop the loop by entering a key (any key) to take me back to the :MainMenu
===========
I have seen and tested many answers like Here but unfortunately either I don't understand the code or it is not related to my problem.
I would appreciate it if anyone could guide me through.