Created
October 5, 2018 20:03
-
-
Save jtrent238/0c4c91ee8e56a5c5288e9902c2a791da to your computer and use it in GitHub Desktop.
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 | |
cls | |
color 0a | |
cls | |
echo What do you want to ping? Enter IP Address or host name. | |
echo ------------------------------------------------------------ | |
SET /p pinger= | |
SET filetype=.ping | |
echo Will now ping %pinger%. | |
echo ------------------------------------------------------------ | |
If NOT exist "pingresults" ( | |
echo Directory "pingresults" not found. Creating it... | |
mkdir "pingresults" | |
echo Directory "pingresults" created! | |
echo ------------------------------------------------------------ | |
) | |
:loop | |
echo Pinging %pinger%... | |
ping %pinger% -l 65500 -s 4 -w 1ms>>pingresults\%pinger%%filetype% | |
echo Ping complete... | |
goto loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment