Created
March 27, 2020 22:15
-
-
Save Rami-Majdoub/23b61f744a6411e1747f86bd4effa271 to your computer and use it in GitHub Desktop.
test your connection to the internet and to the router
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| :main | |
| echo ====================================== | |
| echo . | |
| echo 0) exit | |
| echo 1) Router 5 times | |
| echo 2) Google 5 times | |
| echo 4) Router 100 times | |
| echo 5) Google 100 times | |
| set/p a= choise: | |
| if %a%==0 exit | |
| if %a%==1 goto r5 | |
| if %a%==4 goto r100 | |
| if %a%==2 goto g5 | |
| if %a%==5 goto g100 | |
| cls | |
| goto main | |
| :g5 | |
| ping google.com -n 5 | |
| goto main | |
| :g100 | |
| ping google.com -n 100 | |
| goto main | |
| :r5 | |
| ping 192.168.1.1 -n 5 | |
| goto main | |
| :r100 | |
| ping 192.168.1.1 -n 100 | |
| goto main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment