Created
November 13, 2014 09:02
-
-
Save stania/3e03d1c1b29c94f3afbc to your computer and use it in GitHub Desktop.
check if specified ip conflicts with others in same network
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 | |
setlocal | |
set IP=%1 | |
arp -d %IP% | |
ping -4 -w 100 -n 1 %IP% > NUL | |
arp -a %IP% | findstr %IP% > NUL | |
exit /b %ERRORLEVEL% | |
endlocal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment