Skip to content

Instantly share code, notes, and snippets.

@jtrent238
Created October 5, 2018 20:03
Show Gist options
  • Save jtrent238/0c4c91ee8e56a5c5288e9902c2a791da to your computer and use it in GitHub Desktop.
Save jtrent238/0c4c91ee8e56a5c5288e9902c2a791da to your computer and use it in GitHub Desktop.
@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