Created
September 28, 2015 01:54
-
-
Save aladine/4ba59003f3ee72824609 to your computer and use it in GitHub Desktop.
Get IP config and then ping to google.com to check internet
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 | |
TITLE Ifconfig | |
::CMD will no longer show us what command it’s executing(cleaner) | |
ECHO As a network admin, I m getting tired of having to type these commands in! Hopefully, this saves me some time in the long run. | |
:: Print some text | |
IPCONFIG /ALL | |
:: Outputs tons of network information into the command prompt | |
PAUSE | |
:: Lets the user read the important network information | |
PING www.google.com | |
:: Ping google to figure out if we’ve got internet! | |
ECHO All done pinging Google. | |
::Print some text | |
PAUSE | |
:: Give the user some time to see the results. Because this is our last line, the program will exit and the command window will close once this line finishes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment