Skip to content

Instantly share code, notes, and snippets.

@aladine
Created September 28, 2015 01:54
Show Gist options
  • Save aladine/4ba59003f3ee72824609 to your computer and use it in GitHub Desktop.
Save aladine/4ba59003f3ee72824609 to your computer and use it in GitHub Desktop.
Get IP config and then ping to google.com to check internet
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