Created
January 4, 2019 01:52
-
-
Save dallin/36b988113b11d3bb2860d4f25a97e279 to your computer and use it in GitHub Desktop.
Pings an IP address and shows red or green
This file contains 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 & cls | |
:top | |
PING -n 1 192.168.1.1 | FIND "TTL=" | |
IF ERRORLEVEL 1 (SET OUT=4F & echo Request timed out.) ELSE (SET OUT=2F) | |
color %OUT% | |
ping -n 2 -l 10 127.0.0.1 >nul | |
GoTo top |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment