Skip to content

Instantly share code, notes, and snippets.

@stania
Created November 13, 2014 09:02
Show Gist options
  • Save stania/3e03d1c1b29c94f3afbc to your computer and use it in GitHub Desktop.
Save stania/3e03d1c1b29c94f3afbc to your computer and use it in GitHub Desktop.
check if specified ip conflicts with others in same network
@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